Commit 0af7ef1e authored by Tom Zander's avatar Tom Zander

add isEmpty() on ConstBuffer

parent 191bc375
Pipeline #78225600 passed with stages
in 25 minutes and 33 seconds
......@@ -40,6 +40,10 @@ public:
return m_start != nullptr && m_stop != nullptr;
bool isEmpty() const {
return m_start == m_stop;
/// Construct from already allocated storage.
/// Keep in mind that a shared_ptr can have a custom dtor if we want to send something special
explicit ConstBuffer(std::shared_ptr<char> buffer, char const *start, char const *stop);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment