diff --git a/src/util/ConstBuffer.hxx b/src/util/ConstBuffer.hxx index 6754cb065..2670489b1 100644 --- a/src/util/ConstBuffer.hxx +++ b/src/util/ConstBuffer.hxx @@ -63,6 +63,14 @@ struct ConstBuffer { return ConstBuffer(nullptr, 0); } + constexpr static ConstBuffer FromVoid(ConstBuffer other) { + return other; + } + + constexpr ConstBuffer ToVoid() const { + return *this; + } + constexpr bool IsNull() const { return data == nullptr; }