DatagramBuffer

from panda3d.core import DatagramBuffer
class DatagramBuffer

Bases: DatagramSink, DatagramGenerator

This class can be used to write a series of datagrams into a memory buffer. It acts as both a datagram sink and generator; you can fill it up with datagrams and then read as many datagrams from it.

This uses the same format as DatagramInputFile and DatagramOutputFile, meaning that Datagram sizes are always stored little-endian.

Inheritance diagram

Inheritance diagram of DatagramBuffer

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

C++ Interface: clear(const DatagramBuffer self)

/**
  • Clears the internal buffer.

*/

data
upcastToDatagramGenerator()

C++ Interface: upcast_to_DatagramGenerator(const DatagramBuffer self)

upcast from DatagramBuffer to DatagramGenerator

upcastToDatagramSink()

C++ Interface: upcast_to_DatagramSink(const DatagramBuffer self)

upcast from DatagramBuffer to DatagramSink

upcast_to_DatagramGenerator()

C++ Interface: upcast_to_DatagramGenerator(const DatagramBuffer self)

upcast from DatagramBuffer to DatagramGenerator

upcast_to_DatagramSink()

C++ Interface: upcast_to_DatagramSink(const DatagramBuffer self)

upcast from DatagramBuffer to DatagramSink