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

Public Member Functions

 RemoteZip (HttpClient &http_client, std::string url, uint64_t size, std::vector< std::string > headers)
 
bool Close () override
 
bool Open () override
 
int64_t Read (char *zip_data, uint64_t zip_len) override
 
bool SetOffset (int64_t offset) override
 
int64_t Offset () override
 
uint64_t Size () 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

HttpClienthttp_client_
 
std::string url_
 
uint64_t offset_ = 0
 
uint64_t size_ = 0
 
std::vector< std::string > headers_
 

Constructor & Destructor Documentation

◆ RemoteZip()

cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::RemoteZip ( HttpClient http_client,
std::string  url,
uint64_t  size,
std::vector< std::string >  headers 
)
inline

Member Function Documentation

◆ Close()

bool cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::Close ( )
inlineoverridevirtual

◆ Offset()

int64_t cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::Offset ( )
inlineoverridevirtual

◆ Open()

bool cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::Open ( )
inlineoverridevirtual

◆ Read()

int64_t cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::Read ( char *  zip_data,
uint64_t  zip_len 
)
inlineoverridevirtual

◆ SetOffset()

bool cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::SetOffset ( int64_t  offset)
inlineoverridevirtual

◆ Size()

uint64_t cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::Size ( )
inlineoverridevirtual

Member Data Documentation

◆ headers_

std::vector<std::string> cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::headers_
private

◆ http_client_

HttpClient& cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::http_client_
private

◆ offset_

uint64_t cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::offset_ = 0
private

◆ size_

uint64_t cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::size_ = 0
private

◆ url_

std::string cuttlefish::anonymous_namespace{remote_zip.cc}::RemoteZip::url_
private

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