Buffer
'Buffer' provides simple string buffer implementation.
Static Methods
from
Creates Buffer from std::string.
Params
str
const std::string &
string to convert to Buffer
Returns
Buffer ·
Buffer object
from
Creates Buffer from char*.
Params
data
const char *
the char* to convert to Buffer
size
std::size_t
data length
Returns
Buffer ·
Buffer object
Methods
stdString
Gets data as std::string from Buffer.
Returns
conststd::string& ·
data as std::string
stdString
Gets data as std::string from Buffer.
Returns
std::string& ·
data as std::string
size
Gets Buffer data size.
Returns
std::size_t ·
data size
data
Gets data as char* from Buffer.
Returns
constchar* ·
data as char*
operator==
Params
obj
const Buffer &
Returns
bool ·
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.