diff --git a/source/coral/io.cpp b/source/coral/io.cpp index abbee10..c2b595e 100644 --- a/source/coral/io.cpp +++ b/source/coral/io.cpp @@ -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. */