libzipper 1.0.1
Public Member Functions
zipper::Writer Class Reference

Writer accepts output data from the compression/decompression functions. More...

#include <zipper.hh>

Inheritance diagram for zipper::Writer:

List of all members.

Public Member Functions

virtual ~Writer ()
 Writer dtor.
virtual zsize_t getSize () const =0
 Returns the size of the written data.
virtual void writeData (zsize_t offset, zsize_t bytes, const uint8_t *data)=0

Detailed Description

Writer accepts output data from the compression/decompression functions.

Normally, an application using libzipper provides the Writer implementation. The implementation could write data to files, in-memory buffers, or it could be simply discarded.

The Writer implementation needs only to support sequential access.

Definition at line 383 of file zipper.hh.

Member Function Documentation

virtual void zipper::Writer::writeData ( zsize_t  offset,
zsize_t  bytes,
const uint8_t *  data 
) [pure virtual]

Accepts output from libzipper

An exception must be thrown if it is not possible to accept given data. (eg. file IO error).

offsetNumber of bytes to skip at the front of the data source. Skipped bytes will contain null characters if not already assigned a value.
bytesNumber of bytes in data
dataOutput from libzipper.

Implemented in zipper::FileWriter.

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