Add way to count coral::fixed_buffer

This commit is contained in:
kayomn 2023-02-23 00:18:14 +00:00
parent da3e87fe3b
commit 2f884f92a1
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ export namespace coral {
return this->data;
}
/**
* Returns the number of bytes in the buffer that have been filled with data.
*/
usize count() const {
return this->filled;
}
/**
* Returns the tail pointer of the buffer data.
*/