# DCPackData

from pandac.PandaModules import DCPackData

Class : DCPackData
Description : This is a block of data that receives the results of DCPacker.

## Inheritance:

DCPackData:

## Methods of DCPackData:

clear
getLength
getString

clear void DCPackData::clear(void); Description: Empties the contents of the data (without necessarily freeing its allocated memory).

getLength unsigned int DCPackData::get_length(void) const; Description: 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.

getString string DCPackData::get_string(void) const; Description: Returns the data buffer as a string. Also see get_data().