id3lib  3.8.3
Public Member Functions | List of all members
dami::io::BStringWriter Class Reference

#include <io_strings.h>

Inheritance diagram for dami::io::BStringWriter:
ID3_Writer

Public Member Functions

 BStringWriter (BString &string)
 
virtual ~BStringWriter ()
 
void close ()
 Close the writer. More...
 
void flush ()
 Flush the writer. More...
 
virtual size_type writeChars (const char buf[], size_type len)
 
size_type writeChars (const char_type buf[], size_type len)
 Write up to len characters into buf and advance the internal position accordingly. More...
 
pos_type getCur ()
 Return the next position that will be written to. More...
 
- Public Member Functions inherited from ID3_Writer
virtual pos_type getBeg ()
 Return the beginning position in the writer. More...
 
virtual 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 int_type writeChar (char_type ch)
 Write a single character and advance the internal position. More...
 
virtual bool atEnd ()
 

Additional Inherited Members

- Public Types inherited from ID3_Writer
typedef uint32 size_type
 
typedef uint8 char_type
 
typedef uint32 pos_type
 
typedef int32 off_type
 
typedef int16 int_type
 
- Static Public Attributes inherited from ID3_Writer
static const int_type END_OF_WRITER = -1
 

Detailed Description

Definition at line 209 of file io_strings.h.

Constructor & Destructor Documentation

◆ BStringWriter()

dami::io::BStringWriter::BStringWriter ( BString &  string)
inline

Definition at line 213 of file io_strings.h.

◆ ~BStringWriter()

virtual dami::io::BStringWriter::~BStringWriter ( )
inlinevirtual

Definition at line 214 of file io_strings.h.

Member Function Documentation

◆ close()

void dami::io::BStringWriter::close ( )
inlinevirtual

Close the writer.

Any further actions on the writer should fail.

Implements ID3_Writer.

Definition at line 216 of file io_strings.h.

◆ flush()

void dami::io::BStringWriter::flush ( )
inlinevirtual

Flush the writer.

Implements ID3_Writer.

Definition at line 217 of file io_strings.h.

◆ getCur()

pos_type dami::io::BStringWriter::getCur ( )
inlinevirtual

Return the next position that will be written to.

Implements ID3_Writer.

Definition at line 229 of file io_strings.h.

◆ writeChars() [1/2]

virtual size_type dami::io::BStringWriter::writeChars ( const char  buf[],
size_type  len 
)
inlinevirtual

Reimplemented from ID3_Writer.

Definition at line 218 of file io_strings.h.

◆ writeChars() [2/2]

size_type dami::io::BStringWriter::writeChars ( const char_type  buf[],
size_type  len 
)
inlinevirtual

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.

Definition at line 223 of file io_strings.h.


The documentation for this class was generated from the following file: