#include <toolbox/io/Buffer.hpp>
Definition at line 34 of file Buffer.hpp.
◆ Buffer() [1/4]
toolbox::io::Buffer::Buffer |
( |
std::size_t |
capacity | ) |
|
|
inlineexplicit |
◆ Buffer() [2/4]
toolbox::io::Buffer::Buffer |
( |
| ) |
|
|
default |
◆ ~Buffer()
toolbox::io::Buffer::~Buffer |
( |
| ) |
|
|
default |
◆ Buffer() [3/4]
◆ Buffer() [4/4]
toolbox::io::Buffer::Buffer |
( |
Buffer && |
| ) |
|
|
defaultnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ data() [1/2]
◆ data() [2/2]
ConstBuffer toolbox::io::Buffer::data |
( |
std::size_t |
limit | ) |
const |
|
inlinenoexcept |
Returns slice of available data as a buffer.
Definition at line 52 of file Buffer.hpp.
◆ str()
std::string_view toolbox::io::Buffer::str |
( |
| ) |
const |
|
inlinenoexcept |
Returns available data as a string view.
Definition at line 55 of file Buffer.hpp.
◆ front()
std::string_view toolbox::io::Buffer::front |
( |
std::size_t |
size | ) |
const |
|
inlinenoexcept |
Returns slice of available data at the front of the buffer.
Definition at line 58 of file Buffer.hpp.
◆ back()
std::string_view toolbox::io::Buffer::back |
( |
std::size_t |
size | ) |
const |
|
inlinenoexcept |
Returns slice of available data at the back of the buffer.
Definition at line 64 of file Buffer.hpp.
◆ empty()
bool toolbox::io::Buffer::empty |
( |
| ) |
const |
|
inlinenoexcept |
◆ size()
std::size_t toolbox::io::Buffer::size |
( |
| ) |
const |
|
inlinenoexcept |
Returns number of bytes available for read.
Definition at line 75 of file Buffer.hpp.
◆ clear()
void toolbox::io::Buffer::clear |
( |
| ) |
|
|
inlinenoexcept |
◆ commit()
void toolbox::io::Buffer::commit |
( |
std::size_t |
count | ) |
|
|
inlinenoexcept |
Move characters from the write sequence to the read sequence.
Definition at line 81 of file Buffer.hpp.
◆ consume()
void toolbox::io::Buffer::consume |
( |
std::size_t |
count | ) |
|
|
noexcept |
Remove characters from the read sequence.
Definition at line 22 of file Buffer.cpp.
◆ prepare()
Returns write buffer of at least size bytes.
Definition at line 87 of file Buffer.hpp.
◆ reserve()
void toolbox::io::Buffer::reserve |
( |
std::size_t |
capacity | ) |
|
|
inline |
The documentation for this class was generated from the following files: