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 34 of file apk_asset_provider.cc.

Constructor & Destructor Documentation

◆ APKAssetMapping()

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

Definition at line 36 of file apk_asset_provider.cc.

36 : asset_(asset) {}

◆ ~APKAssetMapping()

flutter::APKAssetMapping::~APKAssetMapping ( )
inlineoverride

Definition at line 38 of file apk_asset_provider.cc.

38 { AAsset_close(asset_); }

Member Function Documentation

◆ GetMapping()

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

Implements fml::Mapping.

Definition at line 42 of file apk_asset_provider.cc.

References FML_DISALLOW_COPY_AND_ASSIGN.

42  {
43  return reinterpret_cast<const uint8_t*>(AAsset_getBuffer(asset_));
44  }

◆ GetSize()

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

Implements fml::Mapping.

Definition at line 40 of file apk_asset_provider.cc.

40 { return AAsset_getLength(asset_); }

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