id3lib
3.8.3
|
#include <io_decorators.h>
Public Member Functions | |
CharReader (ID3_Reader &reader) | |
virtual | ~CharReader () |
size_type | readChars (char_type buf[], size_type len) |
Read len characters into the array buf . More... | |
size_type | readChars (char buf[], size_type len) |
void | close () |
Close the reader. More... | |
int_type | peekChar () |
Return the next character to be read without advancing the internal position. More... | |
pos_type | getBeg () |
Return the beginning position in the reader. More... | |
pos_type | getCur () |
Return the current position in the reader. More... | |
pos_type | getEnd () |
Return the ending position in the reader. More... | |
pos_type | setCur (pos_type cur) |
Set the value of the current position for reading. More... | |
![]() | |
virtual int_type | readChar () |
Read a single character and advance the internal position. More... | |
virtual size_type | skipChars (size_type len) |
Skip up to len chars in the stream and advance the internal position accordingly. More... | |
virtual size_type | remainingBytes () |
virtual bool | atEnd () |
Protected Attributes | |
ID3_Reader & | _reader |
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 |
Definition at line 92 of file io_decorators.h.
|
inline |
Definition at line 101 of file io_decorators.h.
|
inlinevirtual |
Definition at line 102 of file io_decorators.h.
|
inlinevirtual |
Close the reader.
Any further actions on the reader should fail.
Implements ID3_Reader.
Definition at line 115 of file io_decorators.h.
|
inlinevirtual |
Return the beginning position in the reader.
Reimplemented from ID3_Reader.
Definition at line 118 of file io_decorators.h.
|
inlinevirtual |
Return the current position in the reader.
Implements ID3_Reader.
Definition at line 119 of file io_decorators.h.
|
inlinevirtual |
Return the ending position in the reader.
Reimplemented from ID3_Reader.
Definition at line 120 of file io_decorators.h.
|
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.
Definition at line 116 of file io_decorators.h.
|
virtual |
Read len
characters into the array buf
.
Since the stream needs might have been unsynced, this function copies the characters one at a time.
Implements ID3_Reader.
Definition at line 147 of file io_decorators.cpp.
Reimplemented from ID3_Reader.
Definition at line 110 of file io_decorators.h.
Set the value of the current position for reading.
Implements ID3_Reader.
Definition at line 122 of file io_decorators.h.
|
protected |
Definition at line 97 of file io_decorators.h.