Chained buffer for IOCP.
More...
#include <IOBuf.h>
|
void | push (Node node) |
|
void | clear () |
| Release all nodes.
|
|
size_t | getReadableSize () const noexcept |
| Get the current readable size.
|
|
size_t | getTotalSize () const noexcept |
| Get the current total size of all node contents.
|
|
int64_t | read (void *buffer, size_t length) override |
|
int64_t | peek (void *buffer, size_t length) override |
|
int64_t | trunc (size_t length) override |
|
virtual | ~InputStream () noexcept=default |
|
virtual | ~PeekableStream ()=default |
|
◆ ListType
◆ Node
◆ clear()
void sese::iocp::IOBuf::clear |
( |
| ) |
|
◆ getReadableSize()
size_t sese::iocp::IOBuf::getReadableSize |
( |
| ) |
const |
|
nodiscardnoexcept |
Get the current readable size.
◆ getTotalSize()
size_t sese::iocp::IOBuf::getTotalSize |
( |
| ) |
const |
|
nodiscardnoexcept |
Get the current total size of all node contents.
◆ peek()
int64_t sese::iocp::IOBuf::peek |
( |
void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ push()
void sese::iocp::IOBuf::push |
( |
Node | node | ) |
|
Add a new node. Once the node is added, it can no longer be modified externally
- Parameters
-
◆ read()
int64_t sese::iocp::IOBuf::read |
( |
void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ trunc()
int64_t sese::iocp::IOBuf::trunc |
( |
size_t | length | ) |
|
|
overridevirtual |
◆ cur
ListType::iterator sese::iocp::IOBuf::cur |
|
private |
◆ list
◆ readed
size_t sese::iocp::IOBuf::readed {0} |
|
private |
◆ total
size_t sese::iocp::IOBuf::total {0} |
|
private |
The documentation for this class was generated from the following files: