SimpleAllocatorBlock
from panda3d.core import SimpleAllocatorBlock
- class SimpleAllocatorBlock
Bases:
DTOOL_SUPER_BASE
A single block as returned from SimpleAllocator::alloc().
Inheritance diagram
- __init__(*args, **kwargs)
- getAllocator()
C++ Interface: get_allocator(SimpleAllocatorBlock self)
- /**
Returns the SimpleAllocator object that owns this block. Returns NULL if
the block has been freed.
*/
- getMaxSize()
C++ Interface: get_max_size(SimpleAllocatorBlock self)
- /**
Returns the maximum size this block can be reallocated to, as limited by
the following block.
*/
- getNextBlock()
C++ Interface: get_next_block(SimpleAllocatorBlock self)
- /**
Returns a pointer to the next allocated block in the chain, or NULL if
there are no more allocated blocks.
*/
- getSize()
C++ Interface: get_size(SimpleAllocatorBlock self)
- /**
Returns the size of this block. It is an error to call this if the block
has been freed.
*/
- getStart()
C++ Interface: get_start(SimpleAllocatorBlock self)
- /**
Returns the starting point of this block. It is an error to call this if
the block has been freed.
*/
- get_allocator()
C++ Interface: get_allocator(SimpleAllocatorBlock self)
- /**
Returns the SimpleAllocator object that owns this block. Returns NULL if
the block has been freed.
*/
- get_max_size()
C++ Interface: get_max_size(SimpleAllocatorBlock self)
- /**
Returns the maximum size this block can be reallocated to, as limited by
the following block.
*/
- get_next_block()
C++ Interface: get_next_block(SimpleAllocatorBlock self)
- /**
Returns a pointer to the next allocated block in the chain, or NULL if
there are no more allocated blocks.
*/
- get_size()
C++ Interface: get_size(SimpleAllocatorBlock self)
- /**
Returns the size of this block. It is an error to call this if the block
has been freed.
*/
- get_start()
C++ Interface: get_start(SimpleAllocatorBlock self)
- /**
Returns the starting point of this block. It is an error to call this if
the block has been freed.
*/
- isFree()
C++ Interface: is_free(SimpleAllocatorBlock self)
- /**
Returns true if the block has been freed, false if it is still valid.
*/