Collaboration diagram for XFcCFLDirectoryEntry:
Public Member Functions | |
XFCIMPORT INT32 | byteRequirement () |
Calculates required buffer size for a directory. | |
XFCIMPORT void | store (INT8 *buffer, INT32 &offset) |
Encodes an entry to a buffer. | |
XFCIMPORT | ~XFcCFLDirectoryEntry () |
XFCIMPORT INT | equals (const CHAR *name, INT32 hash) |
Compares two directory entries, first by hash and then by the name. | |
XFCIMPORT void | replaceEntry (XFcCFLDirectoryEntry *replacement) |
Replaces this entry with new one. | |
Static Public Member Functions | |
XFCIMPORT XFcCFLDirectoryEntry * | restore (INT8 *buffer, INT32 &offset) |
Loads an entry from a buffer. | |
XFCIMPORT INT32 | calcHash (const CHAR *name) |
Calculates a hash from a name. | |
Public Attributes | |
CHAR * | mName |
Name is stored as short int size + char string. | |
UINT32 | mCompression |
UINT32 | mUnpackedSize |
UINT32 | mOffset |
INT32 | mNameHash |
Hash is not loaded from a file, but rather calculated on the run. | |
XFcCFLLibrary * | mLib |
XFcCFLDirectoryEntry * | mNext |
Pointer to the next entry. |
|
|
|
Calculates required buffer size for a directory.
|
|
Calculates a hash from a name.
|
|
Compares two directory entries, first by hash and then by the name.
|
|
Replaces this entry with new one.
|
|
Loads an entry from a buffer.
|
|
Encodes an entry to a buffer.
|
|
|
|
|
|
Name is stored as short int size + char string.
|
|
Hash is not loaded from a file, but rather calculated on the run.
|
|
Pointer to the next entry.
|
|
|
|
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |