|
GClasses
|
This turns a file or a folder (and its contents recursively) into a stream of bytes.
#include <GDirList.h>
Public Member Functions | |
| GFolderSerializer (const char *szPath, bool compress) | |
| szPath can be a filename or a foldername More... | |
| ~GFolderSerializer () | |
| size_t | bytesOut () |
| Returns the number of bytes that have been sent out so far. More... | |
| char * | next (size_t *pOutSize) |
| Returns a pointer to the next chunk of bytes. Returns NULL if it is done. More... | |
Protected Member Functions | |
| void | addName (const char *szName) |
| void | continueDir () |
| void | continueFile () |
| char * | nextPiece (size_t *pOutSize) |
| void | startDir (const char *szDirName) |
| void | startFile (const char *szFilename) |
Protected Attributes | |
| size_t | m_bytesOut |
| bool | m_compressedBufReady |
| unsigned int | m_compressedSize |
| std::stack< GDirList * > | m_dirStack |
| char * | m_pBuf |
| unsigned char * | m_pCompressedBuf |
| std::ifstream * | m_pInStream |
| char * | m_pPos |
| char * | m_pUncompressedBuf |
| size_t | m_remaining |
| size_t | m_size |
| size_t | m_state |
| char * | m_szOrigPath |
| const char * | m_szPath |
| size_t | m_uncompressedPos |
| GClasses::GFolderSerializer::GFolderSerializer | ( | const char * | szPath, |
| bool | compress | ||
| ) |
szPath can be a filename or a foldername
| GClasses::GFolderSerializer::~GFolderSerializer | ( | ) |
|
protected |
|
inline |
Returns the number of bytes that have been sent out so far.
|
protected |
|
protected |
| char* GClasses::GFolderSerializer::next | ( | size_t * | pOutSize | ) |
Returns a pointer to the next chunk of bytes. Returns NULL if it is done.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |