Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TypedDataViewDeserializationCluster Class Reference
Inheritance diagram for dart::TypedDataViewDeserializationCluster:
dart::DeserializationCluster dart::ZoneAllocated

Public Member Functions

 TypedDataViewDeserializationCluster (intptr_t cid)
 
 ~TypedDataViewDeserializationCluster ()
 
void ReadAlloc (Deserializer *d) override
 
void ReadFill (Deserializer *d_) override
 
void PostLoad (Deserializer *d, const Array &refs) override
 
- Public Member Functions inherited from dart::DeserializationCluster
 DeserializationCluster (const char *name, bool is_canonical=false, bool is_immutable=false)
 
virtual ~DeserializationCluster ()
 
virtual void ReadAlloc (Deserializer *deserializer)=0
 
virtual void ReadFill (Deserializer *deserializer)=0
 
virtual void PostLoad (Deserializer *deserializer, const Array &refs)
 
const char * name () const
 
bool is_canonical () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Additional Inherited Members

- Protected Member Functions inherited from dart::DeserializationCluster
void ReadAllocFixedSize (Deserializer *deserializer, intptr_t instance_size)
 
- Protected Attributes inherited from dart::DeserializationCluster
const char *const name_
 
const bool is_canonical_
 
const bool is_immutable_
 
intptr_t start_index_
 
intptr_t stop_index_
 

Detailed Description

Definition at line 5792 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ TypedDataViewDeserializationCluster()

dart::TypedDataViewDeserializationCluster::TypedDataViewDeserializationCluster ( intptr_t  cid)
inlineexplicit

Definition at line 5794 of file app_snapshot.cc.

5795 : DeserializationCluster("TypedDataView"), cid_(cid) {}
DeserializationCluster(const char *name, bool is_canonical=false, bool is_immutable=false)
const intptr_t cid

◆ ~TypedDataViewDeserializationCluster()

dart::TypedDataViewDeserializationCluster::~TypedDataViewDeserializationCluster ( )
inline

Definition at line 5796 of file app_snapshot.cc.

5796{}

Member Function Documentation

◆ PostLoad()

void dart::TypedDataViewDeserializationCluster::PostLoad ( Deserializer d,
const Array refs 
)
inlineoverridevirtual

Reimplemented from dart::DeserializationCluster.

Definition at line 5814 of file app_snapshot.cc.

5814 {
5815 auto& view = TypedDataView::Handle(d->zone());
5816 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5817 view ^= refs.At(id);
5818 view.RecomputeDataField();
5819 }
5820 }
static Object & Handle()
Definition: object.h:407
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19

◆ ReadAlloc()

void dart::TypedDataViewDeserializationCluster::ReadAlloc ( Deserializer d)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 5798 of file app_snapshot.cc.

5798 {
5800 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:11793

◆ ReadFill()

void dart::TypedDataViewDeserializationCluster::ReadFill ( Deserializer d_)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 5802 of file app_snapshot.cc.

5802 {
5803 Deserializer::Local d(d_);
5804
5805 const intptr_t cid = cid_;
5806 ASSERT(!is_canonical()); // Never canonical.
5807 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5808 TypedDataViewPtr view = static_cast<TypedDataViewPtr>(d.Ref(id));
5810 d.ReadFromTo(view);
5811 }
5812 }
static void InitializeHeader(ObjectPtr raw, intptr_t cid, intptr_t size, bool is_canonical=false)
#define ASSERT(E)

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