frame: added bool function returning whether the frame is allocated or not

This commit is contained in:
itsmattkc
2020-02-20 16:37:43 +11:00
parent 2145efa2a0
commit 1cce8abd85
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -145,6 +145,11 @@ void Frame::allocate()
}
}
bool Frame::is_allocated() const
{
return !data_.isEmpty();
}
void Frame::destroy()
{
data_.clear();