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

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

Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const  DCPackData)

◆ clear()

clear ( )

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

◆ getLength()

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.

◆ getString()

str getString ( )

Returns the data buffer as a string.

Also see get_data().