28 #ifndef _ID3LIB_WRITER_H_
29 #define _ID3LIB_WRITER_H_
77 this->writeChars(&ch, 1);
89 return this->writeChars(
reinterpret_cast<const char_type *
>(buf), len);
94 return this->getCur() >= this->getEnd();
virtual size_type getMaxSize()
Return the maximum number of bytes that can be written.
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 int_type writeChar(char_type ch)
Write a single character and advance the internal position.
virtual size_type getSize()
Return the number of bytes written.
virtual pos_type getEnd()
Return the first position that can't be written to.
virtual void close()=0
Close the writer.
virtual pos_type getBeg()
Return the beginning position in the writer.
virtual pos_type getCur()=0
Return the next position that will be written to.
static const int_type END_OF_WRITER
virtual void flush()=0
Flush the writer.
virtual size_type writeChars(const char buf[], size_type len)