Android-cuttlefish cvd tool
Classes | Typedefs | Functions
cuttlefish::anonymous_namespace{zip_cc.cc} Namespace Reference

Classes

struct  ReadableCallbackSource
 
struct  SeekableCallbackSource
 
struct  ZipDeleter
 

Typedefs

using ManagedZip = std::unique_ptr< zip_t, ZipDeleter >
 
using ManagedZipError = std::unique_ptr< zip_error_t, ZipDeleter >
 
using ManagedZipSource = std::unique_ptr< zip_source_t, ZipDeleter >
 

Functions

ManagedZipError NewZipError ()
 
std::string ZipErrorString (zip_error_t *error)
 
std::string ZipErrorString (zip_source_t *source)
 
std::string ZipErrorString (zip_t *source)
 
int64_t HandleCallback (ReadableZipSourceCallback &callbacks, zip_error_t *error, void *data, uint64_t len, zip_source_cmd_t cmd)
 
int64_t HandleCallback (SeekableZipSourceCallback &callbacks, zip_error_t *error, void *data, uint64_t len, zip_source_cmd_t cmd)
 
int64_t ReadableZipSourceCallbackFn (void *userdata, void *data, uint64_t len, zip_source_cmd_t cmd)
 
int64_t SeekableZipSourceCallbackFn (void *userdata, void *data, uint64_t len, zip_source_cmd_t cmd)
 
std::optional< ZipCompressionCompressionFromRaw (uint16_t method)
 

Typedef Documentation

◆ ManagedZip

using cuttlefish::anonymous_namespace{zip_cc.cc}::ManagedZip = typedef std::unique_ptr<zip_t, ZipDeleter>

◆ ManagedZipError

using cuttlefish::anonymous_namespace{zip_cc.cc}::ManagedZipError = typedef std::unique_ptr<zip_error_t, ZipDeleter>

◆ ManagedZipSource

using cuttlefish::anonymous_namespace{zip_cc.cc}::ManagedZipSource = typedef std::unique_ptr<zip_source_t, ZipDeleter>

Function Documentation

◆ CompressionFromRaw()

std::optional< ZipCompression > cuttlefish::anonymous_namespace{zip_cc.cc}::CompressionFromRaw ( uint16_t  method)

◆ HandleCallback() [1/2]

int64_t cuttlefish::anonymous_namespace{zip_cc.cc}::HandleCallback ( ReadableZipSourceCallback callbacks,
zip_error_t *  error,
void *  data,
uint64_t  len,
zip_source_cmd_t  cmd 
)

◆ HandleCallback() [2/2]

int64_t cuttlefish::anonymous_namespace{zip_cc.cc}::HandleCallback ( SeekableZipSourceCallback callbacks,
zip_error_t *  error,
void *  data,
uint64_t  len,
zip_source_cmd_t  cmd 
)

◆ NewZipError()

ManagedZipError cuttlefish::anonymous_namespace{zip_cc.cc}::NewZipError ( )

◆ ReadableZipSourceCallbackFn()

int64_t cuttlefish::anonymous_namespace{zip_cc.cc}::ReadableZipSourceCallbackFn ( void *  userdata,
void *  data,
uint64_t  len,
zip_source_cmd_t  cmd 
)

◆ SeekableZipSourceCallbackFn()

int64_t cuttlefish::anonymous_namespace{zip_cc.cc}::SeekableZipSourceCallbackFn ( void *  userdata,
void *  data,
uint64_t  len,
zip_source_cmd_t  cmd 
)

◆ ZipErrorString() [1/3]

std::string cuttlefish::anonymous_namespace{zip_cc.cc}::ZipErrorString ( zip_error_t *  error)

◆ ZipErrorString() [2/3]

std::string cuttlefish::anonymous_namespace{zip_cc.cc}::ZipErrorString ( zip_source_t *  source)

◆ ZipErrorString() [3/3]

std::string cuttlefish::anonymous_namespace{zip_cc.cc}::ZipErrorString ( zip_t *  source)