|
|
| BrotliDecompressionSource (Source &inner) |
| size_t | read (char *data, size_t len) override |
| void | operator() (char *data, size_t len) |
|
virtual bool | good () |
|
void | drainInto (Sink &sink) |
|
std::string | drain () |
|
|
std::unique_ptr< char[]> | buf |
|
size_t | avail_in = 0 |
|
const uint8_t * | next_in |
|
std::exception_ptr | inputEofException = nullptr |
|
Source * | inner |
|
std::unique_ptr< BrotliDecoderState, void(*)(BrotliDecoderState *)> | state |
|
|
static constexpr size_t | BUF_SIZE = 32 * 1024 |
◆ read()
| size_t nix::BrotliDecompressionSource::read |
( |
char * | data, |
|
|
size_t | len ) |
|
inlineoverridevirtual |
Store up to ‘len’ in the buffer pointed to by ‘data’, and return the number of bytes stored. It blocks until at least one byte is available.
Should not return 0 (generally you want to throw EndOfFile), but nothing stops that.
- Exceptions
-
| EndOfFile | if there is no more data. |
Implements nix::Source.
The documentation for this struct was generated from the following file:
- lix/libutil/compression.cc