Flutter Engine
flutter::DirectoryAssetBundle Class Reference

#include <directory_asset_bundle.h>

Inheritance diagram for flutter::DirectoryAssetBundle:
flutter::AssetResolver

Public Member Functions

 DirectoryAssetBundle (fml::UniqueFD descriptor, bool is_valid_after_asset_manager_change)
 
 ~DirectoryAssetBundle () override
 
- Public Member Functions inherited from flutter::AssetResolver
 AssetResolver ()=default
 
virtual ~AssetResolver ()=default
 

Detailed Description

Definition at line 15 of file directory_asset_bundle.h.

Constructor & Destructor Documentation

◆ DirectoryAssetBundle()

flutter::DirectoryAssetBundle::DirectoryAssetBundle ( fml::UniqueFD  descriptor,
bool  is_valid_after_asset_manager_change 
)

Definition at line 15 of file directory_asset_bundle.cc.

References FML_DLOG, fml::IsDirectory(), fml::kRead, fml::OpenFile(), and ~DirectoryAssetBundle().

18  : descriptor_(std::move(descriptor)) {
19  if (!fml::IsDirectory(descriptor_)) {
20  return;
21  }
22  is_valid_after_asset_manager_change_ = is_valid_after_asset_manager_change;
23  is_valid_ = true;
24 }
bool IsDirectory(const fml::UniqueFD &directory)
Definition: file_posix.cc:124

◆ ~DirectoryAssetBundle()

flutter::DirectoryAssetBundle::~DirectoryAssetBundle ( )
overridedefault

Referenced by DirectoryAssetBundle().


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