Panda3D
Public Member Functions | List of all members
VertexDataSaveFile Class Reference

A temporary file to hold the vertex data that has been evicted from memory and written to disk. More...

Inheritance diagram for VertexDataSaveFile:
SimpleAllocator

Public Member Functions

int getTotalFileSize ()
 Returns the amount of space consumed by the save file, including unused portions. More...
 
int 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...
 
- Public Member Functions inherited from SimpleAllocator
 __init__ (SimpleAllocator from)
 Move constructor. More...
 
 __init__ (int max_size, Mutex lock)
 
SimpleAllocatorBlock alloc (int size, int alignment)
 Allocates a new block. More...
 
int getContiguous ()
 Returns an upper-bound estimate of the size of the largest contiguous block that may be allocated. More...
 
SimpleAllocatorBlock getFirstBlock ()
 Returns a pointer to the first allocated block, or NULL if there are no allocated blocks. More...
 
int getMaxSize ()
 Returns the available space for allocated objects. More...
 
int 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 (int max_size)
 Changes the available space for allocated objects. More...
 
 write (Ostream out)
 

Detailed Description

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.

Member Function Documentation

◆ getTotalFileSize()

int getTotalFileSize ( )

Returns the amount of space consumed by the save file, including unused portions.

◆ getUsedFileSize()

int getUsedFileSize ( )

Returns the amount of space within the save file that is currently in use.

◆ isValid()

bool isValid ( )

Returns true if the save file was successfully created and is ready for use, false if there was an error.