Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
fml::DataMapping Class Referencefinal

#include <mapping.h>

Inheritance diagram for fml::DataMapping:
fml::Mapping

Public Member Functions

 DataMapping (std::vector< uint8_t > data)
 
 DataMapping (const std::string &string)
 
 ~DataMapping () 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 92 of file mapping.h.

Constructor & Destructor Documentation

◆ DataMapping() [1/2]

fml::DataMapping::DataMapping ( std::vector< uint8_t >  data)
explicit

Definition at line 71 of file mapping.cc.

71: data_(std::move(data)) {}
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ DataMapping() [2/2]

fml::DataMapping::DataMapping ( const std::string &  string)
explicit

Definition at line 73 of file mapping.cc.

74 : data_(string.begin(), string.end()) {}
static const char * begin(const StringSlice &s)
Definition: editor.cpp:252
glong glong end

◆ ~DataMapping()

fml::DataMapping::~DataMapping ( )
overridedefault

Member Function Documentation

◆ GetMapping()

const uint8_t * fml::DataMapping::GetMapping ( ) const
overridevirtual

Implements fml::Mapping.

Definition at line 82 of file mapping.cc.

82 {
83 return data_.data();
84}

◆ GetSize()

size_t fml::DataMapping::GetSize ( ) const
overridevirtual

Implements fml::Mapping.

Definition at line 78 of file mapping.cc.

78 {
79 return data_.size();
80}

◆ IsDontNeedSafe()

bool fml::DataMapping::IsDontNeedSafe ( ) const
overridevirtual

Implements fml::Mapping.

Definition at line 86 of file mapping.cc.

86 {
87 return false;
88}

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