This class implements Base94 encoding/decoding, it uses all printable characters except space for encoding, and no padding is required.
More...
#include "util/stream/base94_output_stream.h"
|
enum | Mode : bool |
| Whether this object is configured to encode or decode data. More...
|
|
|
| Base94OutputStream (Mode mode, std::unique_ptr< OutputStreamInterface > output_stream) |
|
bool | Write (const uint8_t *data, size_t size) override |
|
bool | Flush () override |
|
This class implements Base94 encoding/decoding, it uses all printable characters except space for encoding, and no padding is required.
This implementation uses two base94 symbols to encoding 13 or 14 bit data, To maximize encoding efficiency, 14-bit data is encoded into two base94 symbols if its low 13-bit is less than 644 ( = 94^2 - 2^13), otherwise 13-bit data is encoded.
◆ Mode
Whether this object is configured to encode or decode data.
Enumerator |
---|
kEncode | Data passed through this object is encoded.
|
kDecode | Data passed through this object is decoded.
|
◆ Base94OutputStream()
crashpad::Base94OutputStream::Base94OutputStream |
( |
Mode |
mode, |
|
|
std::unique_ptr< OutputStreamInterface > |
output_stream |
|
) |
| |
- Parameters
-
[in] | mode | The work mode of this object. |
[in] | output_stream | The output_stream that this object writes to. |
The documentation for this class was generated from the following files:
- util/stream/base94_output_stream.h
- util/stream/base94_output_stream.cc