#include <readers.h>
Inheritance diagram for ID3_MemoryReader:
Public Member Functions | |
ID3_MemoryReader () | |
ID3_MemoryReader (const char_type *buf, size_type size) | |
ID3_MemoryReader (const char *buf, size_type size) | |
virtual | ~ID3_MemoryReader () |
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) |
virtual pos_type | getCur () |
Return the current position in 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 | setCur (pos_type pos) |
Set the value of the internal position for reading. | |
Protected Member Functions | |
void | setBuffer (const char_type *buf, size_type size) |
Definition at line 88 of file readers.h.
ID3_MemoryReader::ID3_MemoryReader | ( | ) | [inline] |
ID3_MemoryReader::ID3_MemoryReader | ( | const char * | buf, | |
size_type | size | |||
) | [inline] |
virtual ID3_MemoryReader::~ID3_MemoryReader | ( | ) | [inline, virtual] |
virtual void ID3_MemoryReader::close | ( | ) | [inline, virtual] |
virtual int_type ID3_MemoryReader::peekChar | ( | ) | [inline, 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.
Implements ID3_Reader.
Definition at line 116 of file readers.h.
References _cur.
Read up to len
chars into buf and advance the internal position accordingly.
Returns the number of characters read into buf.
Definition at line 128 of file readers.h.
References ID3_Reader::readChars().
ID3_Reader::size_type ID3_MemoryReader::readChars | ( | char_type | buf[], | |
size_type | len | |||
) | [virtual] |
Definition at line 33 of file readers.cpp.
virtual pos_type ID3_MemoryReader::getCur | ( | ) | [inline, virtual] |
Return the current position in the reader.
Implements ID3_Reader.
Definition at line 134 of file readers.h.
References _cur.
Referenced by ID3_Tag::Parse().
virtual pos_type ID3_MemoryReader::getBeg | ( | ) | [inline, virtual] |
virtual pos_type ID3_MemoryReader::getEnd | ( | ) | [inline, virtual] |
Return the ending position in the reader.
Reimplemented from ID3_Reader.
Definition at line 144 of file readers.h.
References _end.
Referenced by ID3_Tag::Parse().
Set the value of the internal position for reading.
Definition at line 151 of file readers.h.
References _cur, ID3_Reader::getCur(), and ID3_Reader::getEnd().