id3lib 3.8.3
|
#include <readers.h>
Public Member Functions | |
ID3_IStreamReader (istream &reader) | |
virtual | ~ID3_IStreamReader () |
virtual void | close () |
Close the reader. | |
virtual int_type | peekChar () |
Return the next character to be read without advancing the internal position. | |
virtual size_type | readChars (char buf[], size_type len) |
Read up to len chars into buf and advance the internal position accordingly. | |
virtual size_type | readChars (char_type buf[], size_type len) |
Read up to len characters into buf and advance the internal position accordingly. | |
virtual pos_type | getBeg () |
Return the beginning position in the reader. | |
virtual pos_type | getCur () |
Return the current position in the reader. | |
virtual pos_type | getEnd () |
Return the ending position in the reader. | |
virtual pos_type | setCur (pos_type pos) |
Set the value of the internal position for reading. | |
![]() | |
virtual int_type | readChar () |
Read a single character and advance the internal position. | |
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 () |
Protected Member Functions | |
istream & | getReader () const |
Additional Inherited Members | |
![]() | |
typedef uint32 | size_type |
typedef uint8 | char_type |
typedef uint32 | pos_type |
typedef int32 | off_type |
typedef int16 | int_type |
![]() | |
static const int_type | END_OF_READER = -1 |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Close the reader.
Any further actions on the reader should fail.
Implements ID3_Reader.
Reimplemented in ID3_IFStreamReader.
|
inlinevirtual |
Return the beginning position in the reader.
Reimplemented from ID3_Reader.
|
inlinevirtual |
Return the current position in the reader.
Implements ID3_Reader.
|
inlinevirtual |
Return the ending position in the reader.
Reimplemented from ID3_Reader.
|
inlineprotected |
|
inlinevirtual |
Return the next character to be read without advancing the internal position.
Returns END_OF_READER if there isn't a character to read.
Implements ID3_Reader.
Read up to len
chars into buf and advance the internal position accordingly.
Returns the number of characters read into buf.
Reimplemented from ID3_Reader.
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.
Implements ID3_Reader.
Set the value of the internal position for reading.
Implements ID3_Reader.