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

Public Member Functions

 CachedZipSourceCallbacks (LazilyLoadedFile source, size_t size)
 
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
 

Private Attributes

LazilyLoadedFile source_
 
size_t offset_ = 0
 
const size_t size_
 

Constructor & Destructor Documentation

◆ CachedZipSourceCallbacks()

cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::CachedZipSourceCallbacks ( LazilyLoadedFile  source,
size_t  size 
)
inline

Member Function Documentation

◆ Close()

bool cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::Close ( )
inlineoverridevirtual

◆ Offset()

int64_t cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::Offset ( )
inlineoverridevirtual

◆ Open()

bool cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::Open ( )
inlineoverridevirtual

◆ Read()

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

◆ SetOffset()

bool cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::SetOffset ( int64_t  offset)
inlineoverridevirtual

◆ Size()

uint64_t cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::Size ( )
inlineoverridevirtual

Member Data Documentation

◆ offset_

size_t cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::offset_ = 0
private

◆ size_

const size_t cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::size_
private

◆ source_

LazilyLoadedFile cuttlefish::anonymous_namespace{cached_zip_source.cc}::CachedZipSourceCallbacks::source_
private

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