Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarBuffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarBuffer.hpp')
-rw-r--r--source/core/StarBuffer.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarBuffer.hpp b/source/core/StarBuffer.hpp
index 0e1213e..0f9864a 100644
--- a/source/core/StarBuffer.hpp
+++ b/source/core/StarBuffer.hpp
@@ -105,6 +105,8 @@ public:
// Clears buffer, moves position to 0.
bool empty() const;
+ operator bool() const;
+
// Reset buffer with new contents, moves position to 0.
void reset(char const* externalData, size_t len);