Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
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 class  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)
 
 FileEncoder (const FileEncoder &)=delete
 
FileEncoderoperator= (const FileEncoder &)=delete
 
bool Process ()
 Encode/decode the data from input_path_ file according work mode, and write the result to output_path_ on success.
 

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