Description | Hierarchy | Fields | Methods | Properties |
type unaBitReader_stream = class(unaBitReader_abstract)
Bit-reader based on streaming.
constructor create(); |
|
function EOF(numBits: unsigned = 8): bool; override; |
|
procedure BeforeDestruction(); override; |
|
procedure write(data: pointer; size: int); |
|
procedure doRestart(); override; |
|
procedure needMoreData(size: int); virtual; |
|
procedure readSubBuf(reqSize: int = -1; append: bool = false); override; |
constructor create(); |
|
function EOF(numBits: unsigned = 8): bool; override; |
|
Returns True if end of stream reached. Most streams may never ends, until closed. |
procedure BeforeDestruction(); override; |
|
procedure write(data: pointer; size: int); |
|
Pushes new data into stream, making it available for parser.
Parameters
|
procedure doRestart(); override; |
|
Cleans up the reader. |
procedure needMoreData(size: int); virtual; |
|
Provides callback-like notification for streamer when more data is needed. Streamer must push some bytes using write() method. Parameters
|
procedure readSubBuf(reqSize: int = -1; append: bool = false); override; |
|
Reads next portion of data from stream. |
(c) 2012 Lake of Soft