Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks Class Reference
Inheritance diagram for cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks:
Collaboration graph
[legend]

Public Member Functions

bool Close () override
 
bool Open () override
 
int64_t Read (char *data, uint64_t len) override
 
uint64_t Size () override
 
bool SetOffset (int64_t offset) override
 
int64_t Offset () override
 
- Public Member Functions inherited from cuttlefish::SeekableZipSourceCallback
virtual ~SeekableZipSourceCallback ()=default
 
virtual bool SetOffset (int64_t offset)=0
 
virtual int64_t Offset ()=0
 
- Public Member Functions inherited from cuttlefish::ReadableZipSourceCallback
virtual ~ReadableZipSourceCallback ()=default
 
virtual bool Close ()=0
 
virtual bool Open ()=0
 
virtual int64_t Read (char *data, uint64_t len)=0
 
virtual uint64_t Size ()=0
 

Static Public Member Functions

static Result< BufferedZipSourceCallbacksCreate (SeekableZipSource inner, size_t buffer_size)
 

Private Member Functions

 BufferedZipSourceCallbacks (SeekableZipSource inner, size_t buffer_size)
 

Private Attributes

SeekableZipSource inner_
 
std::optional< SeekingZipSourceReaderreader_
 
std::vector< char > buffer_
 
uint64_t size_
 
int64_t offset_
 
size_t offset_in_buffer_
 
size_t buffer_remaining_
 

Constructor & Destructor Documentation

◆ BufferedZipSourceCallbacks()

cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::BufferedZipSourceCallbacks ( SeekableZipSource  inner,
size_t  buffer_size 
)
inlineprivate

Member Function Documentation

◆ Close()

bool cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::Close ( )
inlineoverridevirtual

◆ Create()

static Result< BufferedZipSourceCallbacks > cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::Create ( SeekableZipSource  inner,
size_t  buffer_size 
)
inlinestatic

◆ Offset()

int64_t cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::Offset ( )
inlineoverridevirtual

◆ Open()

bool cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::Open ( )
inlineoverridevirtual

◆ Read()

int64_t cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::Read ( char *  data,
uint64_t  len 
)
inlineoverridevirtual

◆ SetOffset()

bool cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::SetOffset ( int64_t  offset)
inlineoverridevirtual

◆ Size()

uint64_t cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::Size ( )
inlineoverridevirtual

Member Data Documentation

◆ buffer_

std::vector<char> cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::buffer_
private

◆ buffer_remaining_

size_t cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::buffer_remaining_
private

◆ inner_

SeekableZipSource cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::inner_
private

◆ offset_

int64_t cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::offset_
private

◆ offset_in_buffer_

size_t cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::offset_in_buffer_
private

◆ reader_

std::optional<SeekingZipSourceReader> cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::reader_
private

◆ size_

uint64_t cuttlefish::anonymous_namespace{buffered_zip_source.cc}::BufferedZipSourceCallbacks::size_
private

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