from panda3d.core import DatagramBuffer
- class DatagramBuffer
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.
Initializes an empty datagram buffer.
- __init__(data: bytes)
Initializes the buffer with the given data.
Clears the internal buffer.