mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-26 22:54:49 +00:00
Allow constructing Buffer from a std::string
This commit is contained in:
@@ -38,6 +38,11 @@ Buffer::Buffer()
|
||||
|
||||
}
|
||||
|
||||
Buffer::Buffer(const string& data)
|
||||
: Buffer(data.data(), data.size()) {
|
||||
|
||||
}
|
||||
|
||||
const Buffer::DataType* Buffer::get_data() const {
|
||||
return data_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user