Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
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
 
bool IsDontNeedSafe () const override
 
- Public Member Functions inherited from fml::Mapping
 Mapping ()
 
virtual ~Mapping ()
 
virtual size_t GetSize () const =0
 
virtual const uint8_t * GetMapping () const =0
 
virtual bool IsDontNeedSafe () const =0
 

Detailed Description

Definition at line 18 of file apk_asset_provider.cc.

Constructor & Destructor Documentation

◆ APKAssetMapping()

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

Definition at line 20 of file apk_asset_provider.cc.

20: asset_(asset) {}

◆ ~APKAssetMapping()

flutter::APKAssetMapping::~APKAssetMapping ( )
inlineoverride

Definition at line 22 of file apk_asset_provider.cc.

22{ AAsset_close(asset_); }

Member Function Documentation

◆ GetMapping()

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

Implements fml::Mapping.

Definition at line 26 of file apk_asset_provider.cc.

26 {
27 return reinterpret_cast<const uint8_t*>(AAsset_getBuffer(asset_));
28 }

◆ GetSize()

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

Implements fml::Mapping.

Definition at line 24 of file apk_asset_provider.cc.

24{ return AAsset_getLength(asset_); }

◆ IsDontNeedSafe()

bool flutter::APKAssetMapping::IsDontNeedSafe ( ) const
inlineoverridevirtual

Implements fml::Mapping.

Definition at line 30 of file apk_asset_provider.cc.

30{ return !AAsset_isAllocated(asset_); }

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