From 53b73c860426e822aca3486b027dd9b574add3ae Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 14 Nov 2011 17:42:18 -0800 Subject: Adding 'isEmpty' helper. We probably want a 'put' method also. That could come in handy. --- includes/BStream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/BStream.h') 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 m_h; uint8_t * m_buffer; -- cgit v1.2.3