diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-25 00:04:55 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-25 00:04:55 -0800 |
commit | ef6356cf6453f8bf624369942ed57769f80c087a (patch) | |
tree | aace8d3d3db0648f774b957a3276e3534ede98e6 /includes/BStream.h | |
parent | 9329e059b2e560cb3222cee8f8fcf0906de2cf73 (diff) |
We need the buffered streams to be detacheable
Diffstat (limited to 'includes/BStream.h')
-rw-r--r-- | includes/BStream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/BStream.h b/includes/BStream.h index d5b5c17..86b0e0f 100644 --- a/includes/BStream.h +++ b/includes/BStream.h @@ -17,6 +17,7 @@ class BStream : public Handle { int peekNextByte(); String readString(bool putNL = false); bool isEmpty() { return m_availBytes == 0; } + void detach() { m_detached = true; } private: IO<Handle> m_h; uint8_t * m_buffer; @@ -24,6 +25,8 @@ class BStream : public Handle { size_t m_cursor; String m_name; bool m_passThru; + bool m_detached; + bool m_closed; }; }; |