|
libzipper 1.0.1
|
Writer accepts output data from the compression/decompression functions. More...
#include <zipper.hh>
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 |
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.
| 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).
| offset | Number of bytes to skip at the front of the data source. Skipped bytes will contain null characters if not already assigned a value. |
| bytes | Number of bytes in data |
| data | Output from libzipper. |
Implemented in zipper::FileWriter.
1.7.4