mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-04 20:48:00 +00:00
Add examples
This commit is contained in:
@@ -51,6 +51,10 @@ size_t Buffer::get_size() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
Buffer::operator bool() const {
|
||||
return data_ != nullptr;
|
||||
}
|
||||
|
||||
string Buffer::as_string() const {
|
||||
return string(data_, data_ + size_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user