summaryrefslogtreecommitdiff
path: root/includes/BStream.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-14 17:42:18 -0800
committerPixel <pixel@nobis-crew.org>2011-11-14 17:42:18 -0800
commit53b73c860426e822aca3486b027dd9b574add3ae (patch)
tree42fb66e8365f67fffd61075c0a03f393b640f8b8 /includes/BStream.h
parent6f213b0a8abba8d3ca85e688714c91755741f82c (diff)
Adding 'isEmpty' helper. We probably want a 'put' method also. That could come in handy.
Diffstat (limited to 'includes/BStream.h')
-rw-r--r--includes/BStream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/BStream.h b/includes/BStream.h
index 73b7a96..087948d 100644
--- a/includes/BStream.h
+++ b/includes/BStream.h
@@ -16,6 +16,7 @@ class BStream : public Handle {
virtual off_t getSize();
int peekNextByte();
String readString(bool putNL = false);
+ bool isEmpty() { return m_availBytes == 0; }
private:
IO<Handle> m_h;
uint8_t * m_buffer;