Describes a file. More...
#include "memfs.h"
Data Fields | |
| uint32 | cbSize |
| The file's current meaningful extent. Do not confuse this with cbCapacity. | |
| uint8 * | pData |
| Pointer to the file's current uncompressed data buffer. | |
| uint32 | nReaders |
| The number of descriptors currently open for read access. | |
| uint32 | nWriters |
| The number of descriptors currently open for write access. | |
| HqBool | fDynamicBuffer |
| Indicates whether pData points to runtime-allocated memory, and thus whether it should be freed when the buffer is grown or otherwise de-assigned. | |
| uint32 | cbCapacity |
| Indicates the capacity of the current buffer, which will be greater than or equal to cbSize. | |
| HqBool | fCompressed |
| Indicates whether the file is compressed. | |
| uint32 | cbCompressedSize |
| The compressed size of the file. | |
| HqBool | fDynamicCompressedBuffer |
| Indicates whether the compressed byte buffer is runtime-allocated, and thus whether it should be freed when the file is deleted. | |
| uint8 * | pCompressedData |
| Pointer to the compressed data. | |
| HqBool | fModified |
| Flag indicating that the file has been modified. | |
Describes a file.