#include <errno.h>#include <fcntl.h>#include <limits.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include <sys/stat.h>#include <unistd.h>#include "htdebug.h"#include "htexcept.h"#include "htsys.h"#include "stream.h"#include "tools.h"Go to the source code of this file.
Defines | |
| #define | STREAM_COPYBUF_SIZE (64*1024) |
| #define | EXTEND_BUFSIZE 1024 |
| #define | EXTEND_BUFSIZE 1024 |
| #define | HTMEMFILE_INITIAL_SIZE 1024 |
| #define | HTMEMFILE_GROW_FACTOR_NUM 4 |
| #define | HTMEMFILE_GROW_FACTOR_DENOM 3 |
| #define | REASONABLE_STRING_LIMIT 1024 |
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 510 of file stream.cc. Referenced by ht_stdio_file::extend(), and ht_sys_file::extend(). |
|
|
Definition at line 858 of file stream.cc. Referenced by ht_mem_file::extendbufsize(), and ht_mem_file::shrinkbufsize(). |
|
|
Definition at line 857 of file stream.cc. Referenced by ht_mem_file::extendbufsize(), and ht_mem_file::shrinkbufsize(). |
|
|
Definition at line 856 of file stream.cc. Referenced by ht_mem_file::init(). |
|
|
Definition at line 1034 of file stream.cc. Referenced by getstrz(). |
|
|
Definition at line 40 of file stream.cc. Referenced by ht_ltextfile::copy_to(), and ht_stream::copy_to(). |
|
|
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(). |
1.3.5