Logo Search packages:      
Sourcecode: xchm version File versions

size_t CHMFile::RetrieveObject ( chmUnitInfo *  ui,
unsigned char *  buffer,
off_t  fileOffset,
size_t  bufferSize 

Retrieves an uncompressed chunk of a file in the .chm.

ui Pointer to a CHMLIB specific data structure obtained from a succesful call to ResolveObject().
buffer The buffer to place the chunk into.
fileOffset Where does the chunk we want begin in the file?
bufferSize The size of the buffer.
0 on error, length of chunk retrieved otherwise.

Definition at line 446 of file chmfile.cpp.

Referenced by GetFileAsString(), and CHMInputStream::OnSysRead().

      return ::chm_retrieve_object(_chmFile, ui, buffer, fileOffset,

Generated by  Doxygen 1.6.0   Back to index