|
byteme
Read/write bytes from various sources
|
Read and decompress bytes from a Zlib-compressed buffer. More...
#include <ZlibBufferReader.hpp>


Public Member Functions | |
| ZlibBufferReader (const unsigned char *buffer, std::size_t length, const ZlibBufferReaderOptions &options) | |
| std::size_t | read (unsigned char *buffer, std::size_t n) |
Public Member Functions inherited from byteme::Reader | |
Read and decompress bytes from a Zlib-compressed buffer.
This is basically a wrapper around Zlib's inflate method, with correct closing and error checking.
|
inline |
| buffer | Pointer to an array containing the compressed data. |
| length | Length of the buffer array. |
| options | Further options. |
|
inlinevirtual |
Read the specified number of bytes from the source into a user-supplied buffer.
| [out] | buffer | Pointer to an array of at least length n. |
| n | Maximum number of bytes to extract from the source. This may be zero. |
n. If less than n, the stream of bytes from the source is finished and no more calls to read() should be performed. Implements byteme::Reader.