Add examples

This commit is contained in:
Matias Fontanini
2016-06-14 20:07:34 -07:00
parent c4054eaae0
commit 99cab2e741
8 changed files with 196 additions and 0 deletions

View File

@@ -92,6 +92,11 @@ public:
*/
size_t get_size() const;
/**
* Checks whether this is a non empty buffer
*/
explicit operator bool() const;
/**
* Converts the contents of the buffer into a string
*/

View File

@@ -84,6 +84,11 @@ public:
*/
rd_kafka_resp_err_t get_error() const;
/**
* Gets the error as a string
*/
std::string get_error_string() const;
/**
* Gets the topic that this message belongs to
*/