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

Public Member Functions

 PcDescriptorsDeserializationCluster ()
 
 ~PcDescriptorsDeserializationCluster ()
 
void ReadAlloc (Deserializer *d) override
 
void ReadFill (Deserializer *d_) 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 3422 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ PcDescriptorsDeserializationCluster()

dart::PcDescriptorsDeserializationCluster::PcDescriptorsDeserializationCluster ( )
inline

Definition at line 3424 of file app_snapshot.cc.

3425 : DeserializationCluster("PcDescriptors") {}
DeserializationCluster(const char *name, bool is_canonical=false, bool is_immutable=false)

◆ ~PcDescriptorsDeserializationCluster()

dart::PcDescriptorsDeserializationCluster::~PcDescriptorsDeserializationCluster ( )
inline

Definition at line 3426 of file app_snapshot.cc.

3426{}

Member Function Documentation

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 3428 of file app_snapshot.cc.

3428 {
3429 start_index_ = d->next_index();
3430 const intptr_t count = d->ReadUnsigned();
3431 for (intptr_t i = 0; i < count; i++) {
3432 const intptr_t length = d->ReadUnsigned();
3433 d->AssignRef(d->Allocate(PcDescriptors::InstanceSize(length)));
3434 }
3435 stop_index_ = d->next_index();
3436 }
int count
Definition: FontMgrTest.cpp:50
static intptr_t InstanceSize()
Definition: object.h:6089
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
size_t length

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 3438 of file app_snapshot.cc.

3438 {
3439 Deserializer::Local d(d_);
3440
3441 ASSERT(!is_canonical()); // Never canonical.
3442 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
3443 const intptr_t length = d.ReadUnsigned();
3444 PcDescriptorsPtr desc = static_cast<PcDescriptorsPtr>(d.Ref(id));
3445 Deserializer::InitializeHeader(desc, kPcDescriptorsCid,
3447 desc->untag()->length_ = length;
3448 uint8_t* cdata = reinterpret_cast<uint8_t*>(desc->untag()->data());
3449 d.ReadBytes(cdata, length);
3450 }
3451 }
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: