Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::FastFromTo Class Reference

Public Member Functions

 FastFromTo (GrowableArray< ObjectPtr > &storage)
 
ObjectPtr At (intptr_t index)
 
void Add (ObjectPtr key, ObjectPtr value)
 
intptr_t Length ()
 

Detailed Description

Definition at line 384 of file object_graph_copy.cc.

Constructor & Destructor Documentation

◆ FastFromTo()

dart::FastFromTo::FastFromTo ( GrowableArray< ObjectPtr > &  storage)
inlineexplicit

Definition at line 386 of file object_graph_copy.cc.

386: storage_(storage) {}

Member Function Documentation

◆ Add()

void dart::FastFromTo::Add ( ObjectPtr  key,
ObjectPtr  value 
)
inline

Definition at line 389 of file object_graph_copy.cc.

389 {
390 intptr_t i = storage_.length();
391 storage_.Resize(i + 2);
392 storage_[i + 0] = key;
393 storage_[i + 1] = value;
394 }
void Resize(intptr_t new_length)
intptr_t length() const
uint8_t value

◆ At()

ObjectPtr dart::FastFromTo::At ( intptr_t  index)
inline

Definition at line 388 of file object_graph_copy.cc.

388{ return storage_.At(index); }
const T & At(intptr_t index) const

◆ Length()

intptr_t dart::FastFromTo::Length ( )
inline

Definition at line 395 of file object_graph_copy.cc.

395{ return storage_.length(); }

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