Crashpad
Public Types | Public Member Functions | List of all members
crashpad::FileEncoder Class Reference

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"

Public Types

enum  Mode : bool
 Whether this object is configured to encode or decode data. More...
 

Public Member Functions

 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...
 

Detailed Description

The class is used to compress and base94-encode, or base94-decode and decompress the given input file to the output file.

Member Enumeration Documentation

◆ Mode

enum crashpad::FileEncoder::Mode : bool
strong

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.

Constructor & Destructor Documentation

◆ FileEncoder()

crashpad::FileEncoder::FileEncoder ( Mode  mode,
const base::FilePath &  input_path,
const base::FilePath &  output_path 
)
Parameters
[in]modeThe work mode of this object.
[in]input_pathThe input file that this object reads from.
[in]output_pathThe output file that this object writes to.

Member Function Documentation

◆ 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: