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

Public Member Functions

 ExternalTypedDataDeserializationCluster (intptr_t cid)
 
 ~ExternalTypedDataDeserializationCluster ()
 
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 5869 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ ExternalTypedDataDeserializationCluster()

dart::ExternalTypedDataDeserializationCluster::ExternalTypedDataDeserializationCluster ( intptr_t  cid)
inlineexplicit

Definition at line 5871 of file app_snapshot.cc.

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

◆ ~ExternalTypedDataDeserializationCluster()

dart::ExternalTypedDataDeserializationCluster::~ExternalTypedDataDeserializationCluster ( )
inline

Definition at line 5873 of file app_snapshot.cc.

5873{}

Member Function Documentation

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 5875 of file app_snapshot.cc.

5875 {
5877 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:11740
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 5879 of file app_snapshot.cc.

5879 {
5880 Deserializer::Local d(d_);
5881
5882 ASSERT(!is_canonical()); // Never canonical.
5883 const intptr_t cid = cid_;
5885 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5886 ExternalTypedDataPtr data = static_cast<ExternalTypedDataPtr>(d.Ref(id));
5887 const intptr_t length = d.ReadUnsigned();
5890 data->untag()->length_ = Smi::New(length);
5892 data->untag()->data_ = const_cast<uint8_t*>(d.AddressOfCurrentPosition());
5893 d.Advance(length * element_size);
5894 // No finalizer / external size 0.
5895 }
5896 }
static size_t element_size(Layout layout, SkSLType type)
static void InitializeHeader(ObjectPtr raw, intptr_t cid, intptr_t size, bool is_canonical=false)
static constexpr int kDataSerializationAlignment
Definition: object.h:11734
static SmiPtr New(intptr_t value)
Definition: object.h:10006
intptr_t ElementSizeInBytes() const
Definition: object.h:11531
#define ASSERT(E)
size_t length
static int8_t data[kExtLength]

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