![]() |
MySQL 8.0.43
Source Code Documentation
|
#include <buffer.h>
Public Types | |
| using | const_buffers_type = const_buffer |
| using | mutable_buffers_type = mutable_buffer |
Public Member Functions | |
| dynamic_buffer_base (T &v) noexcept | |
| dynamic_buffer_base (T &v, size_t max_size) noexcept | |
| size_t | size () const noexcept |
| number of bytes. More... | |
| size_t | max_size () const noexcept |
| max number of bytes. More... | |
| size_t | capacity () const noexcept |
| max number of bytes without requiring reallocation. More... | |
| const_buffers_type | data (size_t pos, size_t n) const noexcept |
| mutable_buffers_type | data (size_t pos, size_t n) |
| void | grow (size_t n) |
| append bytes at the end. More... | |
| void | shrink (size_t n) |
| remove bytes at the end. More... | |
| void | consume (size_t n) |
| remove bytes at the start. More... | |
Private Attributes | |
| T & | v_ |
| const size_t | max_size_ |
| using net::impl::dynamic_buffer_base< T >::const_buffers_type = const_buffer |
| using net::impl::dynamic_buffer_base< T >::mutable_buffers_type = mutable_buffer |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
max number of bytes without requiring reallocation.
|
inline |
remove bytes at the start.
|
inline |
|
inlinenoexcept |
|
inline |
append bytes at the end.
|
inlinenoexcept |
max number of bytes.
|
inline |
remove bytes at the end.
|
inlinenoexcept |
number of bytes.
|
private |
|
private |