|
CatapultServer
v0.5.0.1 (Elephant)
|
A buffer for storing working data. More...

Public Member Functions | |
| WorkingBuffer (const PacketSocketOptions &options) | |
| Creates an empty working buffer around options. More... | |
| auto | begin () const |
| Returns a const iterator to the beginning of the buffer. More... | |
| auto | end () const |
| Returns a const iterator to the end of the buffer. More... | |
| auto | size () const |
| Returns the size of the buffer. More... | |
| auto | data () const |
| Returns a const pointer to the raw buffer. More... | |
| auto | capacity () const |
| Returns the capacity of the raw buffer. More... | |
| AppendContext | prepareAppend () |
| Creates an append context that can be used to append data to the working buffer. More... | |
| PacketExtractor | preparePacketExtractor () |
| Creates a packet extractor that can be used to extract packets from the working buffer. More... | |
Private Member Functions | |
| void | checkMemoryUsage () |
Private Attributes | |
| PacketSocketOptions | m_options |
| ByteBuffer | m_data |
| size_t | m_numDataSizeSamples |
| size_t | m_maxDataSize |
A buffer for storing working data.
|
explicit |
Creates an empty working buffer around options.
|
inline |
Returns a const iterator to the beginning of the buffer.
|
inline |
Returns the capacity of the raw buffer.
|
private |


|
inline |
Returns a const pointer to the raw buffer.
|
inline |
Returns a const iterator to the end of the buffer.
| AppendContext catapult::ionet::WorkingBuffer::prepareAppend | ( | ) |
Creates an append context that can be used to append data to the working buffer.

| PacketExtractor catapult::ionet::WorkingBuffer::preparePacketExtractor | ( | ) |
Creates a packet extractor that can be used to extract packets from the working buffer.
|
inline |
Returns the size of the buffer.
|
private |
|
private |
|
private |
|
private |