#include <privmx/endpoint/core/Buffer.hpp>
'Buffer' provides simple string buffer implementation.
◆ Buffer()
| privmx::endpoint::core::Buffer::Buffer |
( |
| ) |
|
|
default |
◆ data()
| const char * privmx::endpoint::core::Buffer::data |
( |
| ) |
const |
|
inline |
Gets data as char* from Buffer.
- Returns
- data as char*
◆ from() [1/2]
| Buffer privmx::endpoint::core::Buffer::from |
( |
const char * | data, |
|
|
std::size_t | size ) |
|
inlinestatic |
◆ from() [2/2]
| Buffer privmx::endpoint::core::Buffer::from |
( |
const std::string & | str | ) |
|
|
inlinestatic |
Creates Buffer from std::string.
- Parameters
-
| str | string to convert to Buffer |
- Returns
- Buffer object
◆ size()
| std::size_t privmx::endpoint::core::Buffer::size |
( |
| ) |
const |
|
inline |
Gets Buffer data size.
- Returns
- data size
◆ stdString() [1/2]
| std::string & privmx::endpoint::core::Buffer::stdString |
( |
| ) |
|
|
inline |
Gets data as std::string from Buffer.
- Returns
- data as std::string
◆ stdString() [2/2]
| const std::string & privmx::endpoint::core::Buffer::stdString |
( |
| ) |
const |
|
inline |
Gets data as std::string from Buffer.
- Returns
- data as std::string
The documentation for this class was generated from the following file: