|
Android-cuttlefish cvd tool
|
#include <archive.h>


Public Types | |
| enum class | OpenBehavior { KeepIfExists , Truncate } |
Public Member Functions | |
| WritableZip (WritableZip &&)=default | |
| ~WritableZip () override=default | |
| WritableZip & | operator= (WritableZip &&)=default |
| Result< void > | AddFile (const std::string &name, ReadableZipSource) |
Public Member Functions inherited from cuttlefish::ReadableZip | |
| ReadableZip (ReadableZip &&) | |
| virtual | ~ReadableZip () |
| ReadableZip & | operator= (ReadableZip &&) |
| Result< uint64_t > | NumEntries () |
| Result< std::string > | EntryName (uint64_t index) |
| Result< uint32_t > | EntryAttributes (uint64_t index) const |
| Result< bool > | EntryIsDirectory (uint64_t index) |
| Result< SeekableZipSource > | GetFile (uint64_t index) const |
| Result< std::unique_ptr< ReaderSeeker > > | OpenReadOnly (std::string_view path) override |
| Result< uint32_t > | FileAttributes (std::string_view path) const override |
Public Member Functions inherited from cuttlefish::ReadFilesystem | |
| virtual | ~ReadFilesystem ()=default |
| virtual Result< std::unique_ptr< ReaderSeeker > > | OpenReadOnly (std::string_view path)=0 |
| virtual Result< uint32_t > | FileAttributes (std::string_view path) const =0 |
Static Public Member Functions | |
| static Result< WritableZip > | FromSource (WritableZipSource, OpenBehavior open_behavior=OpenBehavior::Truncate) |
| static Result< void > | Finalize (WritableZip) |
Static Public Member Functions inherited from cuttlefish::ReadableZip | |
| static Result< ReadableZip > | FromSource (SeekableZipSource) |
Protected Member Functions | |
| WritableZip (ManagedZip, WritableZipSource) | |
Protected Member Functions inherited from cuttlefish::ReadableZip | |
| ReadableZip (ManagedZip, WritableZipSource) | |
| Result< SeekableZipSource > | GetFile (const std::string &name) const |
Static Protected Member Functions | |
| static Result< WritableZip > | FromSource (WritableZipSource, int flags) |
Additional Inherited Members | |
Protected Attributes inherited from cuttlefish::ReadableZip | |
| ManagedZip | raw_ |
| WritableZipSource | source_ |
|
strong |
|
default |
|
overridedefault |
|
protected |
| Result< void > cuttlefish::WritableZip::AddFile | ( | const std::string & | name, |
| ReadableZipSource | source | ||
| ) |
|
static |
|
staticprotected |
|
static |
|
default |