#include <packetbuffer.h>
|
static const bt::Uint32 | MAX_SIZE = 1500 |
|
Special packet buffer for UTP packets
Definition at line 55 of file packetbuffer.h.
◆ clearPool()
static void utp::PacketBuffer::clearPool |
( |
| ) |
|
|
static |
Clear the PacketBufferDataPool
◆ fillData() [1/2]
Fill with data from a circular buffer. This will invalidate already filled in headers.
- Parameters
-
cbuf | The buffer |
to_read | Amount to read |
- Returns
- The amount used as payload
◆ fillData() [2/2]
bt::Uint32 utp::PacketBuffer::fillData |
( |
const bt::Uint8 * |
data, |
|
|
bt::Uint32 |
data_size |
|
) |
| |
Fill with data from a buffer.
- Parameters
-
data | The data to copy from |
data_size | The data size |
- Returns
- The amount used as payload
◆ fillDummyData()
void utp::PacketBuffer::fillDummyData |
( |
bt::Uint32 |
amount | ) |
|
For testing purpoes fill with dummy data.
- Parameters
-
◆ isEmpty()
bool utp::PacketBuffer::isEmpty |
( |
| ) |
const |
|
inline |
◆ setHeader()
bool utp::PacketBuffer::setHeader |
( |
const Header & |
hdr, |
|
|
bt::Uint32 |
extension_length |
|
) |
| |
Set the packet's header.
- Parameters
-
header | Header |
extension_length | Length of the extension header |
- Returns
- False if there is not enough head room, true otherwise
The documentation for this class was generated from the following file: