#include "common.h"
#include "global.h"
#include "htio.h"
#include <stdarg.h>
#include <stdio.h>
Go to the source code of this file.
Classes | |
class | ht_file |
class | ht_layer_stream |
class | ht_layer_streamfile |
class | ht_mem_file |
class | ht_memmap_file |
class | ht_null_file |
class | ht_object_stream |
class | ht_stdio_file |
class | ht_stream |
class | ht_streamfile |
class | ht_sys_file |
class | ht_temp_file |
Defines | |
#define | SERR_FAIL 0 |
#define | SERR_RETRY 1 |
#define | STERR_SYSTEM 0x80000000 |
#define | PUT_BINARY(st, d, size) st->putBinary(d, size, #d) |
#define | PUT_BOOL(st, d) st->putBool(d, #d) |
#define | PUT_INT(st, d) st->putInt(d, 4, #d) |
#define | PUT_INT_DEC(st, d) st->putIntDec(d, 4, #d) |
#define | PUT_INT_HEX(st, d) st->putIntHex(d, 4, #d) |
#define | PUT_QWORD_DEC(st, d) st->putQWordDec(d, 8, #d) |
#define | PUT_QWORD_HEX(st, d) st->putQWordHex(d, 8, #d) |
#define | PUT_OBJECT(st, o) st->putObject(o, #o) |
#define | PUT_STRING(st, d) st->putString(d, #d) |
#define | GET_BOOL(st, d) d=st->getBool(#d) |
#define | GET_INT(st, d) d=st->getInt(4, #d) |
#define | GET_INT_DEC(st, d) d=st->getIntDec(4, #d) |
#define | GET_INT_HEX(st, d) d=st->getIntHex(4, #d) |
#define | GET_QWORD_DEC(st, d) d=st->getQWordDec(8, #d) |
#define | GET_QWORD_HEX(st, d) d=st->getQwordHex(8, #d) |
#define | GET_OBJECT(st, o) st->getObject(*(Object**)&o, #o) |
#define | GET_STRING(st, d) d=st->getString(#d) |
#define | FCNTL_MODS_INVD 0x00000001 |
#define | FCNTL_MODS_FLUSH 0x00000002 |
#define | FCNTL_MODS_IS_DIRTY 0x00000003 |
#define | FCNTL_MODS_CLEAR_DIRTY 0x00000004 |
#define | FCNTL_MODS_CLEAR_DIRTY_RANGE 0x00000005 |
#define | FCNTL_FLUSH_STAT 0x00000006 |
#define | FCNTL_GET_RELOC 0x00000007 |
#define | FCNTL_SET_RELOC 0x00000008 |
#define | IS_DIRTY_SINGLEBIT 0x80000000 |
#define | FAM_NULL 0 |
#define | FAM_READ 1 |
#define | FAM_WRITE 2 |
#define | FOM_EXISTS 0 |
#define | FOM_CREATE 1 |
#define | FOM_APPEND 2 |
Typedefs | |
typedef int(* | stream_error_func_ptr )(ht_stream *stream) |
Functions | |
char * | fgetstrz (ht_streamfile *file) |
char * | getstrz (ht_stream *stream) |
void | putstrz (ht_stream *stream, const char *str) |
char * | getstrp (ht_stream *stream) |
void | putstrp (ht_stream *stream, const char *str) |
char * | getstrw (ht_stream *stream) |
void | putstrw (ht_stream *stream, const char *str) |
char * | ht_strerror (int error) |
|
Definition at line 174 of file stream.h. Referenced by ht_stream::init(), ht_file::set_access_mode_internal(), ht_file::truncate(), and ht_file::vcntl(). |
|
|
|
Definition at line 167 of file stream.h. Referenced by ht_file_window::handlemsg(), and ht_file::vcntl(). |
|
Definition at line 168 of file stream.h. Referenced by ht_ne_aviewer::func(), ht_le_aviewer::func(), and ht_reloc_file::vcntl(). |
|
Definition at line 165 of file stream.h. Referenced by ht_text_editor::redo(), ht_text_editor::undo(), and ht_ltextfile::vcntl(). |
|
Definition at line 166 of file stream.h. Referenced by ht_uformat_viewer::handlemsg(), ht_streamfile_modifier::vcntl(), and ht_le_page_file::vcntl(). |
|
Definition at line 163 of file stream.h. Referenced by ht_uformat_viewer::edit_update(), ht_uformat_viewer::func(), ht_ltextfile::vcntl(), and ht_streamfile_modifier::vcntl(). |
|
Definition at line 162 of file stream.h. Referenced by ht_uformat_viewer::func(), ht_format_viewer::handlemsg(), ht_ltextfile::vcntl(), and ht_streamfile_modifier::vcntl(). |
|
|
Definition at line 169 of file stream.h. Referenced by ht_ne_aviewer::func(), ht_le_aviewer::func(), and ht_reloc_file::vcntl(). |
|
Definition at line 181 of file stream.h. Referenced by ht_file::set_access_mode_internal(). |
|
Definition at line 180 of file stream.h. Referenced by RegNodeFile::done(), ht_aviewer::exportFileDialog(), ht_aviewer::generateOutputDialog(), ht_app::handlemsg(), RegNodeFile::init(), save_fileconfig(), save_systemconfig(), and ht_file::set_access_mode_internal(). |
|
Definition at line 179 of file stream.h. Referenced by ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::handlemsg(), ht_file::init(), load_fileconfig(), and load_systemconfig(). |
|
Definition at line 148 of file stream.h. Referenced by Analyser::load(). |
|
|
|
Definition at line 150 of file stream.h. Referenced by Area::load(), and Analyser::load(). |
|
Definition at line 151 of file stream.h. Referenced by x86dis::load(), AnalyX86Disassembler::load(), and Analyser::load(). |
|
Definition at line 154 of file stream.h. Referenced by XBEAnalyser::load(), PEFAnalyser::load(), PEAnalyser::load(), NEAnalyser::load(), MachoAnalyser::load(), LEAnalyser::load(), FLTAnalyser::load(), ElfAnalyser::load(), CoffAnalyser::load(), Analyser::load(), and AddressQueueItem::load(). |
|
|
|
|
|
|
|
Definition at line 171 of file stream.h. Referenced by ht_streamfile_modifier::isdirty(), and ht_uformat_viewer::render_tagstring(). |
|
|
|
Definition at line 139 of file stream.h. Referenced by Analyser::store(). |
|
|
|
Definition at line 141 of file stream.h. Referenced by Area::store(), and Analyser::store(). |
|
Definition at line 142 of file stream.h. Referenced by x86dis::store(), AnalyX86Disassembler::store(), and Analyser::store(). |
|
Definition at line 145 of file stream.h. Referenced by XBEAnalyser::store(), PEFAnalyser::store(), PEAnalyser::store(), NEAnalyser::store(), MachoAnalyser::store(), LEAnalyser::store(), FLTAnalyser::store(), ElfAnalyser::store(), CoffAnalyser::store(), Analyser::store(), and AddressQueueItem::store(). |
|
|
|
|
|
|
|
Definition at line 41 of file stream.h. Referenced by app_stream_error_func(), and ht_stream::call_error_func(). |
|
Definition at line 42 of file stream.h. Referenced by app_stream_error_func(), and ht_file::set_access_mode_internal(). |
|
|
Definition at line 49 of file stream.h. Referenced by ht_layer_streamfile::set_error_func(), ht_layer_stream::set_error_func(), and ht_stream::set_error_func(). |
|
Definition at line 1009 of file stream.cc. References buf, file, FILEOFS, malloc(), and NULL. Referenced by MachoAnalyser::beginAnalysis(), htpefimports_init(), ElfAnalyser::initInsertFakeSymbols(), and ElfAnalyser::initInsertSymbols(). |
|
Definition at line 1062 of file stream.cc. References malloc(), and ht_stream::read(). Referenced by NEAnalyser::beginAnalysis(), and ht_ne::init(). |
|
Definition at line 1079 of file stream.cc. References byte, malloc(), and ht_stream::read(). |
|
Definition at line 1036 of file stream.cc. References buf, malloc(), NULL, ht_stream::read(), and REASONABLE_STRING_LIMIT. Referenced by ht_object_stream_bin::getString(). |
|
Definition at line 1099 of file stream.cc. References STERR_SYSTEM. |
|
Definition at line 1072 of file stream.cc. References ht_stream::write(). |
|
|
|
Definition at line 1057 of file stream.cc. References ht_stream::write(). |