Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
LZ4Decoder Struct Referencefinal

#include <compression_utils.h>

Inheritance diagram for LZ4Decoder:
Inheritance graph
[legend]
Collaboration diagram for LZ4Decoder:
Collaboration graph
[legend]

Public Member Functions

 LZ4Decoder (std::span< char > output_buffer)
 
DecodeResult Decode (std::span< char > *output) final
 
- Public Member Functions inherited from Decoder
void Append (Block &&block)
 
bool Finish ()
 
virtual DecodeResult Decode (std::span< char > *output)=0
 

Private Attributes

bool lz4_done_ = false
 
std::unique_ptr< LZ4F_dctx, LZ4F_errorCode_t(*)(LZ4F_dctx *)> decoder_
 

Additional Inherited Members

- Protected Member Functions inherited from Decoder
 Decoder (std::span< char > output_buffer)
 
 ~Decoder ()=default
 
- Protected Attributes inherited from Decoder
bool finished_ = false
 
IOVector input_buffer_
 
std::span< char > output_buffer_
 

Constructor & Destructor Documentation

◆ LZ4Decoder()

LZ4Decoder::LZ4Decoder ( std::span< char >  output_buffer)
inlineexplicit

Member Function Documentation

◆ Decode()

DecodeResult LZ4Decoder::Decode ( std::span< char > *  output)
inlinefinalvirtual

Implements Decoder.

Member Data Documentation

◆ decoder_

std::unique_ptr<LZ4F_dctx, LZ4F_errorCode_t (*)(LZ4F_dctx*)> LZ4Decoder::decoder_
private

◆ lz4_done_

bool LZ4Decoder::lz4_done_ = false
private

The documentation for this struct was generated from the following file: