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
andDatagramOutputFile
, meaning that Datagram sizes are always stored little-endian.Inheritance diagram
-
DatagramBuffer(void)
-
explicit DatagramBuffer(vector_uchar data)
Initializes an empty datagram buffer.
Initializes the buffer with the given data.
-
void clear(void)
Clears the internal buffer.
-
DatagramBuffer(void)