D++ (DPP)
C++ Discord API Bot Library
|
Represents a buffer of bytes being encoded into ETF. More...
#include <etf.h>
Public Member Functions | |
etf_buffer (size_t initial) | |
Construct a new etf buffer object. More... | |
~etf_buffer () | |
Destroy the etf buffer object. More... | |
Public Attributes | |
std::vector< char > | buf |
Raw buffer. More... | |
size_t | length |
Current used length of buffer (this is different from buf.size() as it is pre-allocated using resize and may not all be in use) More... | |
Represents a buffer of bytes being encoded into ETF.
dpp::etf_buffer::etf_buffer | ( | size_t | initial | ) |
Construct a new etf buffer object.
initial | initial buffer size to allocate |
dpp::etf_buffer::~etf_buffer | ( | ) |
Destroy the etf buffer object.
std::vector<char> dpp::etf_buffer::buf |
Raw buffer.
size_t dpp::etf_buffer::length |
Current used length of buffer (this is different from buf.size() as it is pre-allocated using resize and may not all be in use)