Android-cuttlefish cvd tool
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::AndroidSparseImage Class Reference

#include <sparse_image.h>

Inheritance diagram for cuttlefish::AndroidSparseImage:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::AndroidSparseImage:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

 AndroidSparseImage (AndroidSparseImage &&)
 
 ~AndroidSparseImage () override
 
AndroidSparseImageoperator= (AndroidSparseImage &&)
 
Result< uint64_t > VirtualSizeBytes () const override
 
- Public Member Functions inherited from cuttlefish::DiskImage
virtual ~DiskImage ()=default
 
DiskImageoperator= (DiskImage &&)=delete
 
virtual Result< uint64_t > VirtualSizeBytes () const =0
 

Static Public Member Functions

static Result< AndroidSparseImageOpenExisting (const std::string &path)
 
static std::string MagicString ()
 

Private Member Functions

 AndroidSparseImage (std::unique_ptr< Impl >)
 

Private Attributes

std::unique_ptr< Implimpl_
 

Detailed Description

Image file format comprised of a list of chunks of "raw data" and "fill data" that is a repeated byte string.

Constructor & Destructor Documentation

◆ AndroidSparseImage() [1/2]

cuttlefish::AndroidSparseImage::AndroidSparseImage ( AndroidSparseImage &&  other)

◆ ~AndroidSparseImage()

cuttlefish::AndroidSparseImage::~AndroidSparseImage ( )
overridedefault

◆ AndroidSparseImage() [2/2]

cuttlefish::AndroidSparseImage::AndroidSparseImage ( std::unique_ptr< Impl )
private

Member Function Documentation

◆ MagicString()

std::string cuttlefish::AndroidSparseImage::MagicString ( )
static

"Sparse header magic", used to identify the file type.

Valid android-sparse files start with this prefix.

https://android.googlesource.com/platform/system/core/+/7b444f08c17ed1b82ea1a1560e109c0a173e700f/libsparse/sparse_format.h#39

◆ OpenExisting()

Result< AndroidSparseImage > cuttlefish::AndroidSparseImage::OpenExisting ( const std::string &  path)
static

◆ operator=()

AndroidSparseImage & cuttlefish::AndroidSparseImage::operator= ( AndroidSparseImage &&  other)

◆ VirtualSizeBytes()

Result< uint64_t > cuttlefish::AndroidSparseImage::VirtualSizeBytes ( ) const
overridevirtual

Implements cuttlefish::DiskImage.

Member Data Documentation

◆ impl_

std::unique_ptr<Impl> cuttlefish::AndroidSparseImage::impl_
private

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