id3lib
3.8.3
|
#include <io_decorators.h>
Public Member Functions | |
UnsyncedWriter (ID3_Writer &writer) | |
size_type | getNumSyncs () const |
int_type | writeChar (char_type ch) |
Write a single character and advance the internal position. More... | |
void | flush () |
Flush the writer. More... | |
size_type | writeChars (const char_type[], size_type len) |
Write len characters into the array buf . More... | |
size_type | writeChars (const char buf[], size_type len) |
void | close () |
Close the writer. More... | |
pos_type | getBeg () |
Return the beginning position in the writer. More... | |
pos_type | getCur () |
Return the next position that will be written to. More... | |
pos_type | getEnd () |
Return the first position that can't be written to. More... | |
![]() | |
virtual size_type | getSize () |
Return the number of bytes written. More... | |
virtual size_type | getMaxSize () |
Return the maximum number of bytes that can be written. More... | |
virtual bool | atEnd () |
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_WRITER = -1 |
Definition at line 152 of file io_decorators.h.
|
inline |
Definition at line 161 of file io_decorators.h.
|
inlinevirtual |
Close the writer.
Any further actions on the writer should fail.
Implements ID3_Writer.
Definition at line 180 of file io_decorators.h.
|
virtual |
|
inlinevirtual |
Return the beginning position in the writer.
Reimplemented from ID3_Writer.
Definition at line 182 of file io_decorators.h.
|
inlinevirtual |
Return the next position that will be written to.
Implements ID3_Writer.
Definition at line 183 of file io_decorators.h.
|
inlinevirtual |
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.
Definition at line 184 of file io_decorators.h.
|
inline |
Definition at line 165 of file io_decorators.h.
|
virtual |
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.
Reimplemented from ID3_Writer.
Definition at line 218 of file io_decorators.cpp.
|
virtual |
Write 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_Writer.
Definition at line 240 of file io_decorators.cpp.
Reimplemented from ID3_Writer.
Definition at line 175 of file io_decorators.h.