|
Liblinphone 5.5.0
|
#include <buffer.hh>
Public Member Functions | |
| LINPHONECXX_PUBLIC | Buffer (void *ptr, bool takeRef=true) |
| LINPHONECXX_PUBLIC _LinphoneBuffer * | cPtr () |
| LINPHONECXX_PUBLIC const uint8_t * | getContent () const |
| LINPHONECXX_PUBLIC bool | isEmpty () const |
| LINPHONECXX_PUBLIC size_t | getSize () const |
| LINPHONECXX_PUBLIC void | setSize (size_t size) |
| LINPHONECXX_PUBLIC std::string | getStringContent () const |
| LINPHONECXX_PUBLIC void | setStringContent (const std::string &content) |
| LINPHONECXX_PUBLIC void | setContent (const uint8_t *content, size_t size) |
Static Public Member Functions | |
| static LINPHONECXX_PUBLIC std::shared_ptr< linphone::Buffer > | newFromData (const uint8_t *data, size_t size) |
| static LINPHONECXX_PUBLIC std::shared_ptr< linphone::Buffer > | newFromString (const std::string &data) |
The object representing a data buffer.
| LINPHONECXX_PUBLIC const uint8_t * linphone::Buffer::getContent | ( | ) | const |
Get the content of the data buffer.
| LINPHONECXX_PUBLIC size_t linphone::Buffer::getSize | ( | ) | const |
Get the size of the content of the data buffer.
| LINPHONECXX_PUBLIC std::string linphone::Buffer::getStringContent | ( | ) | const |
Get the string content of the data buffer.
| LINPHONECXX_PUBLIC bool linphone::Buffer::isEmpty | ( | ) | const |
|
static |
|
static |
| LINPHONECXX_PUBLIC void linphone::Buffer::setContent | ( | const uint8_t * | content, |
| size_t | size | ||
| ) |
Set the content of the data buffer.
| content | The content of the data buffer. |
| size | The size of the content of the data buffer. |
| LINPHONECXX_PUBLIC void linphone::Buffer::setSize | ( | size_t | size | ) |
Set the size of the content of the data buffer.
| size | The size of the content of the data buffer. |
| LINPHONECXX_PUBLIC void linphone::Buffer::setStringContent | ( | const std::string & | content | ) |
Set the string content of the data buffer.
| content | The string content of the data buffer. |