Flutter Engine
flutter::APKAssetMapping Class Reference
Inheritance diagram for flutter::APKAssetMapping:
fml::Mapping

Public Member Functions

 APKAssetMapping (AAsset *asset)
 
 ~APKAssetMapping () override
 
size_t GetSize () const override
 
const uint8_t * GetMapping () const override
 
- Public Member Functions inherited from fml::Mapping
 Mapping ()
 
virtual ~Mapping ()
 

Detailed Description

Definition at line 39 of file apk_asset_provider.cc.

Constructor & Destructor Documentation

◆ APKAssetMapping()

flutter::APKAssetMapping::APKAssetMapping ( AAsset *  asset)
inline

Definition at line 41 of file apk_asset_provider.cc.

41 : asset_(asset) {}

◆ ~APKAssetMapping()

flutter::APKAssetMapping::~APKAssetMapping ( )
inlineoverride

Definition at line 43 of file apk_asset_provider.cc.

43 { AAsset_close(asset_); }

Member Function Documentation

◆ GetMapping()

const uint8_t* flutter::APKAssetMapping::GetMapping ( ) const
inlineoverridevirtual

Implements fml::Mapping.

Definition at line 47 of file apk_asset_provider.cc.

References FML_DISALLOW_COPY_AND_ASSIGN.

47  {
48  return reinterpret_cast<const uint8_t*>(AAsset_getBuffer(asset_));
49  }

◆ GetSize()

size_t flutter::APKAssetMapping::GetSize ( ) const
inlineoverridevirtual

Implements fml::Mapping.

Definition at line 45 of file apk_asset_provider.cc.

45 { return AAsset_getLength(asset_); }

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