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

#include <io_decorators.h>

Inheritance diagram for dami::io::CompressedWriter:
ID3_Writer

Public Member Functions

 CompressedWriter (ID3_Writer &writer)
 
virtual ~CompressedWriter ()
 
size_type getOrigSize () const
 
void flush ()
 Flush the writer. More...
 
size_type writeChars (const char_type buf[], size_type len)
 Write up to len characters into buf and advance the internal position accordingly. More...
 
size_type writeChars (const char buf[], size_type len)
 
pos_type getCur ()
 Return the next position that will be written to. More...
 
void close ()
 Close the writer. 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 187 of file io_decorators.h.

Constructor & Destructor Documentation

◆ CompressedWriter()

dami::io::CompressedWriter::CompressedWriter ( ID3_Writer writer)
inlineexplicit

Definition at line 196 of file io_decorators.h.

◆ ~CompressedWriter()

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

Definition at line 199 of file io_decorators.h.

Member Function Documentation

◆ close()

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

Close the writer.

Any further actions on the writer should fail.

Implements ID3_Writer.

Definition at line 212 of file io_decorators.h.

◆ flush()

void io::CompressedWriter::flush ( )
virtual

Flush the writer.

Implements ID3_Writer.

Definition at line 257 of file io_decorators.cpp.

◆ getCur()

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

Return the next position that will be written to.

Implements ID3_Writer.

Definition at line 211 of file io_decorators.h.

◆ getOrigSize()

size_type dami::io::CompressedWriter::getOrigSize ( ) const
inline

Definition at line 201 of file io_decorators.h.

◆ writeChars() [1/2]

ID3_Writer::size_type io::CompressedWriter::writeChars ( const char_type  buf[],
size_type  len 
)
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.

Definition at line 292 of file io_decorators.cpp.

◆ writeChars() [2/2]

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

Reimplemented from ID3_Writer.

Definition at line 206 of file io_decorators.h.


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