The class is used to compress and base94-encode, or base94-decode and decompress the given input file to the output file.
More...
#include "util/stream/file_encoder.h"
|
enum | Mode : bool |
| Whether this object is configured to encode or decode data. More...
|
|
|
| FileEncoder (Mode mode, const base::FilePath &input_path, const base::FilePath &output_path) |
|
bool | Process () |
| Encode/decode the data from input_path_ file according work mode, and write the result to output_path_ on success. More...
|
|
The class is used to compress and base94-encode, or base94-decode and decompress the given input file to the output file.
◆ 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.
|
◆ FileEncoder()
crashpad::FileEncoder::FileEncoder |
( |
Mode |
mode, |
|
|
const base::FilePath & |
input_path, |
|
|
const base::FilePath & |
output_path |
|
) |
| |
- Parameters
-
[in] | mode | The work mode of this object. |
[in] | input_path | The input file that this object reads from. |
[in] | output_path | The output file that this object writes to. |
◆ Process()
bool crashpad::FileEncoder::Process |
( |
| ) |
|
Encode/decode the data from input_path_ file according work mode, and write the result to output_path_ on success.
- Returns
true
on success.
The documentation for this class was generated from the following files:
- util/stream/file_encoder.h
- util/stream/file_encoder.cc