Adbase
Adinf C++ base library V2
|
#include <FileSystem.hpp>
Public Member Functions | |
ReadSmallFile (std::string filename) | |
~ReadSmallFile () | |
template<typename S > | |
int | readToString (int maxSize, S *context, int64_t *fileSize, int64_t *modifyTime, int64_t *createTime) |
int | readToBuffer (int *size) |
const char * | buffer () const |
Static Public Attributes | |
static const int | kBufferSize = 64 * 1024 |
Definition at line 23 of file FileSystem.hpp.
adbase::ReadSmallFile::ReadSmallFile | ( | std::string | filename | ) |
Definition at line 63 of file FileSystem.cpp.
adbase::ReadSmallFile::~ReadSmallFile | ( | ) |
Definition at line 78 of file FileSystem.cpp.
References adbase::sockets::close().
|
inline |
Definition at line 38 of file FileSystem.hpp.
int adbase::ReadSmallFile::readToBuffer | ( | int * | size | ) |
Definition at line 141 of file FileSystem.cpp.
References adbase::readFile(), and readToString().
template int adbase::ReadSmallFile::readToString | ( | int | maxSize, |
S * | context, | ||
int64_t * | fileSize, | ||
int64_t * | modifyTime, | ||
int64_t * | createTime | ||
) |
Definition at line 89 of file FileSystem.cpp.
Referenced by adbase::readFile(), and readToBuffer().
|
static |
Definition at line 42 of file FileSystem.hpp.