Helper class for reading bytes and feeding them to parser.
More...
#include <fixed_buffer.hpp>
Helper class for reading bytes and feeding them to parser.
Definition at line 26 of file fixed_buffer.hpp.
◆ fixed_buffer_t() [1/3]
◆ fixed_buffer_t() [2/3]
◆ fixed_buffer_t() [3/3]
restinio::impl::fixed_buffer_t::fixed_buffer_t |
( |
std::size_t |
size | ) |
|
|
inlineexplicit |
◆ bytes()
const char * restinio::impl::fixed_buffer_t::bytes |
( |
| ) |
const |
|
inlinenoexcept |
Get pointer to unconsumed bytes.
- Note
- To check that buffer has unconsumed bytes use length().
Definition at line 69 of file fixed_buffer.hpp.
◆ consumed_bytes()
void restinio::impl::fixed_buffer_t::consumed_bytes |
( |
std::size_t |
length | ) |
|
|
inlinenoexcept |
◆ length()
std::size_t restinio::impl::fixed_buffer_t::length |
( |
| ) |
const |
|
inlinenoexcept |
How many unconsumed bytes are there in buffer.
Definition at line 63 of file fixed_buffer.hpp.
◆ make_asio_buffer()
auto restinio::impl::fixed_buffer_t::make_asio_buffer |
( |
| ) |
|
|
inlinenoexcept |
Make asio buffer for reading bytes from socket.
Definition at line 41 of file fixed_buffer.hpp.
◆ obtained_bytes()
void restinio::impl::fixed_buffer_t::obtained_bytes |
( |
std::size_t |
length | ) |
|
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ m_buf
std::vector< char > restinio::impl::fixed_buffer_t::m_buf |
|
private |
◆ m_ready_length
std::size_t restinio::impl::fixed_buffer_t::m_ready_length {0} |
|
private |
◆ m_ready_pos
std::size_t restinio::impl::fixed_buffer_t::m_ready_pos {0} |
|
private |
unconsumed data left in buffer:Start of data in buffer.
Definition at line 78 of file fixed_buffer.hpp.
The documentation for this class was generated from the following file: