DCPackData¶
from acron.direct import DCPackData
- class DCPackData¶
Bases:
This is a block of data that receives the results of
DCPacker.Inheritance diagram
digraph inheritance19c7490cb0 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DCPackData" [URL="acron.direct.DCPackData.html#acron.direct.DCPackData",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "DCPackData" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- __init__()¶
- clear()¶
Empties the contents of the data (without necessarily freeing its allocated memory).
- get_length()¶
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()¶
Returns the data buffer as a string. Also see get_data().