|
HikoGUI
A low latency retained GUI
|
#include <hikogui/net/packet.hpp>
Public Member Functions | |
| 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.
|
inlinenoexcept |
Allocate an empty packet of a certain size.
|
inlinenoexcept |
Mark this packet to be pushed to the network.
|
inlinenoexcept |
Should this packet be pushed onto the network.
|
inlinenoexcept |
Consume a read.
Should be called after data has been copied from this buffer.
|
inlinenoexcept |
How many bytes can be read from this buffer.
|
inlinenoexcept |
Commit a write.
Should be called after data has been copied into this buffer.
|
inlinenoexcept |
How many bytes can still be written to this buffer.