Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
dart::NativeAssetsMapTraits Class Reference

#include <native_assets.h>

Static Public Member Functions

static const char * Name ()
 
static bool ReportStats ()
 
static bool IsMatch (const Object &a, const Object &b)
 
static uword Hash (const Object &key)
 
static ObjectPtr NewKey (const String &str)
 

Detailed Description

Definition at line 14 of file native_assets.h.

Member Function Documentation

◆ Hash()

static uword dart::NativeAssetsMapTraits::Hash ( const Object key)
inlinestatic

Definition at line 27 of file native_assets.h.

27{ return String::Cast(key).Hash(); }

◆ IsMatch()

static bool dart::NativeAssetsMapTraits::IsMatch ( const Object a,
const Object b 
)
inlinestatic

Definition at line 19 of file native_assets.h.

19 {
20 const String& a_str = String::Cast(a);
21 const String& b_str = String::Cast(b);
22
23 ASSERT(a_str.HasHash() && b_str.HasHash());
24 return a_str.Equals(b_str);
25 }
#define ASSERT(E)
static bool b
struct MyStruct a[10]

◆ Name()

static const char * dart::NativeAssetsMapTraits::Name ( )
inlinestatic

Definition at line 16 of file native_assets.h.

16{ return "NativeAssetsMapTraits"; }

◆ NewKey()

static ObjectPtr dart::NativeAssetsMapTraits::NewKey ( const String str)
inlinestatic

Definition at line 29 of file native_assets.h.

29{ return str.ptr(); }

◆ ReportStats()

static bool dart::NativeAssetsMapTraits::ReportStats ( )
inlinestatic

Definition at line 17 of file native_assets.h.

17{ return false; }

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