DatagramIterator¶
from panda3d.core import DatagramIterator
-
class
DatagramIterator
¶ A class to retrieve the individual data elements previously stored in a Datagram. Elements may be retrieved one at a time; it is up to the caller to know the correct type and order of each element.
Inheritance diagram
-
__init__
()¶
-
__init__
(param0: DatagramIterator)
-
extractBytes
(size: int) → bytes¶ Extracts the indicated number of bytes in the datagram and returns them as a string.
-
static
getClassType
() → TypeHandle¶
-
getCurrentIndex
() → int¶ Returns the current position within the datagram of the next piece of data to extract.
-
getFixedString
(size: int) → str¶ Extracts a fixed-length string. However, if a zero byte occurs within the string, it marks the end of the string.
-
getInt8
() → int8_t¶ Extracts a signed 8-bit integer.
-
getRemainingBytes
() → bytes¶ Returns the remaining bytes in the datagram as a string, but does not extract them from the iterator.
-
getStdfloat
() → float¶ Extracts either a 32-bit or a 64-bit floating-point number, according to
Datagram.setStdfloatDouble()
.
-
getUint8
() → uint8_t¶ Extracts an unsigned 8-bit integer.
-