Commit bd4df1ae authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/AllocatedArray: add WritableBuffer/ConstBuffer cast operators

parent a93b7172
......@@ -106,6 +106,14 @@ public:
return *this;
}
operator ConstBuffer<T>() const noexcept {
return buffer;
}
operator WritableBuffer<T>() noexcept {
return buffer;
}
constexpr bool IsNull() const noexcept {
return buffer.IsNull();
}
......
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