#include <TTauri/Net/Packet.hpp>
|
| | Packet (ssize_t nrBytes) noexcept |
| | Allocate an empty packet of a certain size.
|
| |
|
| Packet (Packet const &rhs) noexcept=delete |
| |
|
Packet | operator= (Packet const &rhs) noexcept=delete |
| |
|
| Packet (Packet &&rhs) noexcept |
| |
|
std::byte * | begin () noexcept |
| |
|
std::byte * | end () noexcept |
| |
| ssize_t | readSize () const noexcept |
| | How many bytes can be read from this buffer.
|
| |
| ssize_t | writeSize () const noexcept |
| | How many bytes can still be written to this buffer.
|
| |
| bool | pushed () const noexcept |
| | Should this packet be pushed onto the network.
|
| |
| void | push () noexcept |
| | Mark this packet to be pushed to the network.
|
| |
| void | write (ssize_t nrBytes) noexcept |
| | Commit a write.
|
| |
| void | read (ssize_t nrBytes) noexcept |
| | Consume a read.
|
| |
A network message or stream buffer.
◆ Packet()
| tt::Packet::Packet |
( |
ssize_t | nrBytes | ) |
|
|
inlinenoexcept |
Allocate an empty packet of a certain size.
◆ push()
| void tt::Packet::push |
( |
| ) |
|
|
inlinenoexcept |
Mark this packet to be pushed to the network.
◆ pushed()
| bool tt::Packet::pushed |
( |
| ) |
const |
|
inlinenoexcept |
Should this packet be pushed onto the network.
◆ read()
| void tt::Packet::read |
( |
ssize_t | nrBytes | ) |
|
|
inlinenoexcept |
Consume a read.
Should be called after data has been copied from this buffer.
◆ readSize()
| ssize_t tt::Packet::readSize |
( |
| ) |
const |
|
inlinenoexcept |
How many bytes can be read from this buffer.
◆ write()
| void tt::Packet::write |
( |
ssize_t | nrBytes | ) |
|
|
inlinenoexcept |
Commit a write.
Should be called after data has been copied into this buffer.
◆ writeSize()
| ssize_t tt::Packet::writeSize |
( |
| ) |
const |
|
inlinenoexcept |
How many bytes can still be written to this buffer.
The documentation for this class was generated from the following file: