#include <writer.h>
Inheritance diagram for ID3_Writer:
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 writer. | |
virtual void | flush ()=0 |
Flush the writer. | |
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. | |
virtual pos_type | getCur ()=0 |
Return the next position that will be written to. | |
virtual size_type | getSize () |
Return the number of bytes written. | |
virtual size_type | getMaxSize () |
Return the maximum number of bytes that can be written. | |
virtual int_type | writeChar (char_type ch) |
Write a single character and advance the internal position. | |
virtual size_type | writeChars (const char_type buf[], size_type len)=0 |
Write up to len characters into buf and advance the internal position accordingly. | |
virtual size_type | writeChars (const char buf[], size_type len) |
virtual bool | atEnd () |
Static Public Attributes | |
static const int_type | END_OF_WRITER = -1 |
Definition at line 33 of file writer.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
Close the writer. Any further actions on the writer should fail. Implemented in dami::io::UnsyncedWriter, dami::io::CompressedWriter, dami::io::StringWriter, dami::io::BStringWriter, ID3_OStreamWriter, ID3_OFStreamWriter, ID3_IOStreamWriter, ID3_FStreamWriter, and ID3_MemoryWriter. |
|
Flush the writer.
Implemented in dami::io::UnsyncedWriter, dami::io::CompressedWriter, dami::io::StringWriter, dami::io::BStringWriter, ID3_OStreamWriter, ID3_IOStreamWriter, and ID3_MemoryWriter. Referenced by dami::io::UnsyncedWriter::flush(). |
|
Return the beginning position in the writer.
Reimplemented in dami::io::UnsyncedWriter, ID3_OStreamWriter, ID3_IOStreamWriter, and ID3_MemoryWriter. |
|
Return the next position that will be written to.
Implemented in dami::io::UnsyncedWriter, dami::io::CompressedWriter, dami::io::StringWriter, dami::io::BStringWriter, ID3_OStreamWriter, ID3_IOStreamWriter, and ID3_MemoryWriter. Referenced by ID3_Tag::Render(), dami::io::writeText(), dami::io::writeTrailingSpaces(), and dami::io::writeUnicodeText(). |
|
Return the first position that can't be written to. A return value of -1 indicates no (reasonable) limit to the writer. Reimplemented in dami::io::UnsyncedWriter, and ID3_MemoryWriter. |
|
Return the maximum number of bytes that can be written.
|
|
Return the number of bytes written.
|
|
Write a single character and advance the internal position. Note that the interal position may advance more than one byte for a single character write. Returns END_OF_WRITER if there isn't a character to write. Definition at line 71 of file writer.h. Referenced by dami::io::UnsyncedWriter::flush(), dami::id3::v1::render(), ID3_TagHeader::Render(), dami::io::UnsyncedWriter::writeChar(), dami::io::writeString(), and dami::io::writeTrailingSpaces(). |
|
|
|
Write up to 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. Referenced by dami::id3::v1::render(), ID3_TagHeader::Render(), ID3_FrameHeader::Render(), ID3_FieldImpl::RenderBinary(), dami::io::writeBENumber(), ID3_MemoryWriter::writeChars(), dami::io::writeText(), dami::io::writeTrailingSpaces(), dami::io::writeUnicodeString(), and dami::io::writeUnicodeText(). |
|
|