Flutter Engine
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
 
- Public Member Functions inherited from fml::Mapping
 Mapping ()
 
virtual ~Mapping ()
 

Detailed Description

Definition at line 85 of file mapping.h.

Constructor & Destructor Documentation

◆ DataMapping() [1/2]

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

Definition at line 69 of file mapping.cc.

69 : data_(std::move(data)) {}

◆ DataMapping() [2/2]

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

Definition at line 71 of file mapping.cc.

References ~DataMapping().

72  : data_(string.begin(), string.end()) {}

◆ ~DataMapping()

fml::DataMapping::~DataMapping ( )
overridedefault

Referenced by DataMapping().

Member Function Documentation

◆ GetMapping()

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

Implements fml::Mapping.

Definition at line 80 of file mapping.cc.

80  {
81  return data_.data();
82 }

◆ GetSize()

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

Implements fml::Mapping.

Definition at line 76 of file mapping.cc.

76  {
77  return data_.size();
78 }

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