A single-byte-reader wrapper around an InputStream. Optimised for reading one byte at a time. Uses a buffer to reduce the number of times the wrapped stream must be read. More...
#include <archivelib.h>
Public Member Functions | |
SingleByteInputStream (InputStreamType &inputStream) | |
bool | readByte (byte_type &b) |
Private Types | |
typedef InputStreamType::byte_type | byte_type |
Private Attributes | |
InputStreamType & | m_inputStream |
byte_type | m_buffer [SIZE] |
byte_type * | m_cur |
byte_type * | m_end |
A single-byte-reader wrapper around an InputStream. Optimised for reading one byte at a time. Uses a buffer to reduce the number of times the wrapped stream must be read.
Definition at line 36 of file archivelib.h.
typedef InputStreamType::byte_type SingleByteInputStream< InputStreamType, SIZE >::byte_type [private] |
Definition at line 32 of file archivelib.h.
SingleByteInputStream< InputStreamType, SIZE >::SingleByteInputStream | ( | InputStreamType & | inputStream | ) | [inline] |
Definition at line 41 of file archivelib.h.
bool SingleByteInputStream< InputStreamType, SIZE >::readByte | ( | byte_type & | b | ) | [inline] |
Definition at line 45 of file archivelib.h.
Referenced by BinaryToTextInputStream< DeflatedInputStream >::read().
byte_type SingleByteInputStream< InputStreamType, SIZE >::m_buffer[SIZE] [private] |
Definition at line 35 of file archivelib.h.
byte_type* SingleByteInputStream< InputStreamType, SIZE >::m_cur [private] |
Definition at line 36 of file archivelib.h.
byte_type* SingleByteInputStream< InputStreamType, SIZE >::m_end [private] |
Definition at line 37 of file archivelib.h.
InputStreamType& SingleByteInputStream< InputStreamType, SIZE >::m_inputStream [private] |
Definition at line 34 of file archivelib.h.