Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Friends | List of all members
unibrow::Mapping< T, size > Class Template Reference

#include <unibrow.h>

Public Member Functions

 Mapping ()
 
intptr_t get (int32_t c, int32_t n, int32_t *result)
 

Friends

class Test
 

Detailed Description

template<class T, intptr_t size = 256>
class unibrow::Mapping< T, size >

Definition at line 24 of file unibrow.h.

Constructor & Destructor Documentation

◆ Mapping()

template<class T , intptr_t size = 256>
unibrow::Mapping< T, size >::Mapping ( )
inline

Definition at line 26 of file unibrow.h.

26{}

Member Function Documentation

◆ get()

template<class T , intptr_t s>
intptr_t unibrow::Mapping< T, s >::get ( int32_t  c,
int32_t  n,
int32_t *  result 
)
inline

Definition at line 15 of file unibrow-inl.h.

15 {
16 CacheEntry entry = entries_[c & kMask];
17 if (entry.code_point_ == c) {
18 if (entry.offset_ == 0) {
19 return 0;
20 } else {
21 result[0] = c + entry.offset_;
22 return 1;
23 }
24 } else {
25 return CalculateValue(c, n, result);
26 }
27}
GAsyncResult * result

Friends And Related Function Documentation

◆ Test

template<class T , intptr_t size = 256>
friend class Test
friend

Definition at line 30 of file unibrow.h.


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