Buffer
namespace: privmx::endpoint::core
Buffer provides simple string buffer implementation.
Static Methods
from
Creates Buffer from `std::string`.
static Buffer from(
const std::string &str
)
from
Creates Buffer from `char*`.
static Buffer from(
const char *data
std::size_t size
)
Methods
stdString
Gets data as `std::string` from Buffer
const std::string & stdString() const
Type | Description |
---|---|
const std::string & | data as std::string |
stdString
Gets data as `std::string` from Buffer
std::string & stdString()
Type | Description |
---|---|
std::string & | data as std::string |