DCPackData

from panda3d.direct import DCPackData
class DCPackData

Bases: DTOOL_SUPER_BASE

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

Inheritance diagram

Inheritance diagram of DCPackData

__init__(*args, **kwargs)
clear()

C++ Interface: clear(const DCPackData self)

/**
  • Empties the contents of the data (without necessarily freeing its allocated

  • memory).

*/

getLength()

C++ Interface: get_length(DCPackData self)

/**
  • 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()

C++ Interface: get_string(DCPackData self)

/**
  • Returns the data buffer as a string. Also see get_data().

*/

get_length()

C++ Interface: get_length(DCPackData self)

/**
  • 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.

*/

get_string()

C++ Interface: get_string(DCPackData self)

/**
  • Returns the data buffer as a string. Also see get_data().

*/