id3lib 3.8.3
|
#include <reader.h>
Public Types | |
typedef uint32 | size_type |
typedef uint8 | char_type |
typedef uint32 | pos_type |
typedef int32 | off_type |
typedef int16 | int_type |
Public Member Functions | |
virtual void | close ()=0 |
Close the reader. | |
virtual pos_type | getBeg () |
Return the beginning position in the reader. | |
virtual pos_type | getEnd () |
Return the ending position in the reader. | |
virtual pos_type | getCur ()=0 |
Return the current position in the reader. | |
virtual pos_type | setCur (pos_type pos)=0 |
Set the value of the current position for reading. | |
virtual int_type | readChar () |
Read a single character and advance the internal position. | |
virtual int_type | peekChar ()=0 |
Return the next character to be read without advancing the internal position. | |
virtual size_type | readChars (char_type buf[], size_type len)=0 |
Read up to len characters into buf and advance the internal position accordingly. | |
virtual size_type | readChars (char buf[], size_type len) |
virtual size_type | skipChars (size_type len) |
Skip up to len chars in the stream and advance the internal position accordingly. | |
virtual size_type | remainingBytes () |
virtual bool | atEnd () |
Static Public Attributes | |
static const int_type | END_OF_READER = -1 |
typedef uint8 ID3_Reader::char_type |
typedef int16 ID3_Reader::int_type |
typedef int32 ID3_Reader::off_type |
typedef uint32 ID3_Reader::pos_type |
typedef uint32 ID3_Reader::size_type |
|
inlinevirtual |
Reimplemented in dami::io::BStringReader, and dami::io::StringReader.
|
pure virtual |
Close the reader.
Any further actions on the reader should fail.
Implemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IFStreamReader, ID3_IStreamReader, and ID3_MemoryReader.
|
inlinevirtual |
Return the beginning position in the reader.
Reimplemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IStreamReader, and ID3_MemoryReader.
|
pure virtual |
Return the current position in the reader.
Implemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IStreamReader, and ID3_MemoryReader.
|
inlinevirtual |
Return the ending position in the reader.
Reimplemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IStreamReader, and ID3_MemoryReader.
|
pure virtual |
Return the next character to be read without advancing the internal position.
Returns END_OF_READER if there isn't a character to read.
Implemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IStreamReader, and ID3_MemoryReader.
|
inlinevirtual |
Read a single character and advance the internal position.
Note that the interal position may advance more than one byte for a single character read. Returns END_OF_READER if there isn't a character to read.
Reimplemented in dami::io::LineFeedReader, dami::io::UnsyncedReader, and dami::io::WindowedReader.
Reimplemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IStreamReader, and ID3_MemoryReader.
Read up to len
characters into buf and advance the internal position accordingly.
Returns the number of characters read into buf. Note that the value returned may be less than the number of bytes that the internal position advances, due to multi-byte characters.
Implemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IStreamReader, and ID3_MemoryReader.
|
inlinevirtual |
Set the value of the current position for reading.
Implemented in dami::io::BStringReader, dami::io::CharReader, dami::io::StringReader, dami::io::WindowedReader, ID3_IStreamReader, and ID3_MemoryReader.
Skip up to len
chars in the stream and advance the internal position accordingly.
Returns the number of characters actually skipped (may be less than requested).
Reimplemented in dami::io::BStringReader, and dami::io::StringReader.
|
static |