Panda3D
Public Member Functions | Friends | List of all members
VertexDataSaveBlock Class Reference

A block of bytes on the save file. More...

#include "vertexDataSaveFile.h"

Inheritance diagram for VertexDataSaveBlock:
SimpleAllocatorBlock ReferenceCount LinkedListNode MemoryBase

Public Member Functions

bool get_compressed () const
 Returns the compressed flag. More...
 
unsigned char * get_pointer () const
 
void set_compressed (bool compressed)
 Sets the compressed flag. More...
 
- Public Member Functions inherited from SimpleAllocatorBlock
 SimpleAllocatorBlock (const SimpleAllocatorBlock &copy)=delete
 
 SimpleAllocatorBlock (SimpleAllocatorBlock &&from)
 Transfers ownership from the given SimpleAllocatorBlock to this one. More...
 
 ~SimpleAllocatorBlock ()
 The block automatically frees itself when it destructs. More...
 
void free ()
 Releases the allocated space. More...
 
SimpleAllocatorget_allocator () const
 Returns the SimpleAllocator object that owns this block. More...
 
size_t get_max_size () const
 Returns the maximum size this block can be reallocated to, as limited by the following block. More...
 
SimpleAllocatorBlockget_next_block () const
 Returns a pointer to the next allocated block in the chain, or NULL if there are no more allocated blocks. More...
 
size_t get_size () const
 Returns the size of this block. More...
 
size_t get_start () const
 Returns the starting point of this block. More...
 
bool is_free () const
 Returns true if the block has been freed, false if it is still valid. More...
 
SimpleAllocatorBlockoperator= (const SimpleAllocatorBlock &copy)=delete
 
SimpleAllocatorBlockoperator= (SimpleAllocatorBlock &&from)
 Frees this block and instead takes ownership of the given other block. More...
 
void output (std::ostream &out) const
 
bool realloc (size_t size)
 Changes the size of this block to the specified size. More...
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 
WeakReferenceListget_weak_list () const
 Returns the WeakReferenceList associated with this ReferenceCount object. More...
 
bool has_weak_list () const
 Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More...
 
void local_object ()
 This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More...
 
void ref () const
 Explicitly increments the reference count. More...
 
bool ref_if_nonzero () const
 Atomically increases the reference count of this object if it is not zero. More...
 
bool test_ref_count_integrity () const
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool test_ref_count_nonzero () const
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
virtual bool unref () const
 Explicitly decrements the reference count. More...
 
WeakReferenceListweak_ref ()
 Adds the indicated PointerToVoid as a weak reference to this object. More...
 
void weak_unref ()
 Removes the indicated PointerToVoid as a weak reference to this object. More...
 

Friends

class VertexDataSaveFile
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Public Attributes inherited from ReferenceCount
 get_ref_count
 Returns the current reference count. More...
 

Detailed Description

A block of bytes on the save file.

Definition at line 73 of file vertexDataSaveFile.h.

Member Function Documentation

◆ get_compressed()

bool VertexDataSaveBlock::get_compressed ( ) const
inline

Returns the compressed flag.

This is true to indicate the data is written in zlib-compressed form to the save file; false to indicate the data is uncompressed.

Definition at line 66 of file vertexDataSaveFile.I.

◆ set_compressed()

void VertexDataSaveBlock::set_compressed ( bool  compressed)
inline

Sets the compressed flag.

This is true to indicate the data is written in zlib-compressed form to the save file; false to indicate the data is uncompressed.

Definition at line 56 of file vertexDataSaveFile.I.


The documentation for this class was generated from the following files: