id3lib
3.8.3
|
#include <writers.h>
Public Member Functions | |
ID3_MemoryWriter () | |
ID3_MemoryWriter (char_type buf[], size_t size) | |
virtual | ~ID3_MemoryWriter () |
virtual void | close () |
Close the writer. | |
virtual void | flush () |
Flush the writer. | |
virtual size_type | writeChars (const char buf[], size_type len) |
Write up to len chars from buf and advance the internal position accordingly. | |
virtual size_type | writeChars (const char_type buf[], size_type len) |
Write up to len characters into buf and advance the internal position accordingly. | |
virtual pos_type | getCur () |
Return the next position that will be written to. | |
virtual pos_type | getBeg () |
Return the beginning position in the writer. | |
virtual pos_type | getEnd () |
Return the first position that can't be written to. | |
Protected Member Functions | |
void | setBuffer (char_type *buf, size_t size) |
ID3_MemoryWriter::ID3_MemoryWriter | ( | ) | [inline] |
ID3_MemoryWriter::ID3_MemoryWriter | ( | char_type | buf[], |
size_t | size | ||
) | [inline] |
virtual ID3_MemoryWriter::~ID3_MemoryWriter | ( | ) | [inline, virtual] |
virtual void ID3_MemoryWriter::close | ( | ) | [inline, virtual] |
virtual void ID3_MemoryWriter::flush | ( | ) | [inline, virtual] |
virtual pos_type ID3_MemoryWriter::getBeg | ( | ) | [inline, virtual] |
Return the beginning position in the writer.
Reimplemented from ID3_Writer.
virtual pos_type ID3_MemoryWriter::getCur | ( | ) | [inline, virtual] |
Return the next position that will be written to.
Implements ID3_Writer.
virtual pos_type ID3_MemoryWriter::getEnd | ( | ) | [inline, virtual] |
Return the first position that can't be written to.
A return value of -1 indicates no (reasonable) limit to the writer.
Reimplemented from ID3_Writer.
void ID3_MemoryWriter::setBuffer | ( | char_type * | buf, |
size_t | size | ||
) | [inline, protected] |
virtual size_type ID3_MemoryWriter::writeChars | ( | const char | buf[], |
size_type | len | ||
) | [inline, virtual] |
Write up to len
chars from buf and advance the internal position accordingly.
Returns the number of characters written from buf.
Reimplemented from ID3_Writer.
virtual size_type ID3_MemoryWriter::writeChars | ( | const char_type | buf[], |
size_type | len | ||
) | [inline, virtual] |
Write up to len
characters into buf and advance the internal position accordingly.
Returns the number of characters write 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_Writer.