Panda3D
|
A temporary file to hold the vertex data that has been evicted from memory and written to disk. All vertex data arrays are written into one large flat file. More...
Public Member Functions | |
size_t | getTotalFileSize () |
Returns the amount of space consumed by the save file, including unused portions. More... | |
size_t | getUsedFileSize () |
Returns the amount of space within the save file that is currently in use. More... | |
bool | isValid () |
Returns true if the save file was successfully created and is ready for use, false if there was an error. More... | |
![]() | |
__init__ (size_t max_size, Mutex lock) | |
SimpleAllocatorBlock | alloc (size_t size) |
Allocates a new block. Returns NULL if a block of the requested size cannot be allocated. More... | |
size_t | getContiguous () |
Returns an upper-bound estimate of the size of the largest contiguous block that may be allocated. It is guaranteed that an attempt to allocate a block larger than this will fail, though it is not guaranteed that an attempt to allocate a block this size or smaller will succeed. More... | |
SimpleAllocatorBlock | getFirstBlock () |
Returns a pointer to the first allocated block, or NULL if there are no allocated blocks. More... | |
size_t | getMaxSize () |
Returns the available space for allocated objects. More... | |
size_t | getTotalSize () |
Returns the total size of allocated objects. More... | |
bool | isEmpty () |
Returns true if there are no blocks allocated on this page, or false if there is at least one. More... | |
output (Ostream out) | |
setMaxSize (size_t max_size) | |
Changes the available space for allocated objects. This will not affect any already-allocated objects, but will have an effect on future calls to alloc(). More... | |
write (Ostream out) | |
A temporary file to hold the vertex data that has been evicted from memory and written to disk. All vertex data arrays are written into one large flat file.
size_t getTotalFileSize | ( | ) |
Returns the amount of space consumed by the save file, including unused portions.
size_t getUsedFileSize | ( | ) |
Returns the amount of space within the save file that is currently in use.
bool isValid | ( | ) |
Returns true if the save file was successfully created and is ready for use, false if there was an error.