Panda3D
Public Member Functions

DCPackData Class Reference

This is a block of data that receives the results of DCPacker. More...

List of all members.

Public Member Functions

 DCPackData ()
 clear ()
 Empties the contents of the data (without necessarily freeing its allocated memory).
unsigned int getLength ()
 Returns the current length of the buffer.
string getString ()
 Returns the data buffer as a string.

Detailed Description

This is a block of data that receives the results of DCPacker.


Constructor & Destructor Documentation


Member Function Documentation

clear ( )

Empties the contents of the data (without necessarily freeing its allocated memory).

unsigned int getLength ( )

Returns the current length of the buffer.

This is the number of useful bytes stored in the buffer, not the amount of memory it takes up.

string getString ( )

Returns the data buffer as a string.

Also see get_data().

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties