util/AllocatedArray: add WritableBuffer/ConstBuffer cast operators
This commit is contained in:
parent
a93b7172aa
commit
bd4df1ae5d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user