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

Public Member Functions

 TransferableTypedDataMessageDeserializationCluster ()
 
 ~TransferableTypedDataMessageDeserializationCluster ()
 
void ReadNodes (MessageDeserializer *d)
 
void ReadNodesApi (ApiMessageDeserializer *d)
 
- Public Member Functions inherited from dart::MessageDeserializationCluster
 MessageDeserializationCluster (const char *name, bool is_canonical=false)
 
virtual ~MessageDeserializationCluster ()
 
virtual void ReadNodes (MessageDeserializer *d)=0
 
virtual void ReadEdges (MessageDeserializer *d)
 
virtual ObjectPtr PostLoad (MessageDeserializer *d)
 
virtual void ReadNodesApi (ApiMessageDeserializer *d)
 
virtual void ReadEdgesApi (ApiMessageDeserializer *d)
 
virtual void PostLoadApi (ApiMessageDeserializer *d)
 
void ReadNodesWrapped (MessageDeserializer *d)
 
void ReadNodesWrappedApi (ApiMessageDeserializer *d)
 
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::MessageDeserializationCluster
ObjectPtr PostLoadAbstractType (MessageDeserializer *d)
 
ObjectPtr PostLoadLinkedHash (MessageDeserializer *d)
 
 DISALLOW_COPY_AND_ASSIGN (MessageDeserializationCluster)
 
- Protected Attributes inherited from dart::MessageDeserializationCluster
const char *const name_
 
const bool is_canonical_
 
intptr_t start_index_
 
intptr_t stop_index_
 

Detailed Description

Definition at line 1859 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ TransferableTypedDataMessageDeserializationCluster()

dart::TransferableTypedDataMessageDeserializationCluster::TransferableTypedDataMessageDeserializationCluster ( )
inline

Definition at line 1862 of file message_snapshot.cc.

1863 : MessageDeserializationCluster("TransferableTypedData") {}
MessageDeserializationCluster(const char *name, bool is_canonical=false)

◆ ~TransferableTypedDataMessageDeserializationCluster()

dart::TransferableTypedDataMessageDeserializationCluster::~TransferableTypedDataMessageDeserializationCluster ( )
inline

Definition at line 1864 of file message_snapshot.cc.

1864{}

Member Function Documentation

◆ ReadNodes()

void dart::TransferableTypedDataMessageDeserializationCluster::ReadNodes ( MessageDeserializer d)
inlinevirtual

Implements dart::MessageDeserializationCluster.

Definition at line 1866 of file message_snapshot.cc.

1866 {
1867 const intptr_t count = d->ReadUnsigned();
1868 for (intptr_t i = 0; i < count; i++) {
1869 intptr_t length = d->ReadUnsigned();
1870 const FinalizableData finalizable_data = d->finalizable_data()->Take();
1871 d->AssignRef(TransferableTypedData::New(
1872 reinterpret_cast<uint8_t*>(finalizable_data.data), length));
1873 }
1874 }
int count
Definition: FontMgrTest.cpp:50
static TransferableTypedDataPtr New(uint8_t *data, intptr_t len)
Definition: object.cc:25835
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
size_t length

◆ ReadNodesApi()

void dart::TransferableTypedDataMessageDeserializationCluster::ReadNodesApi ( ApiMessageDeserializer d)
inlinevirtual

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 1876 of file message_snapshot.cc.

1876 {
1877 intptr_t count = d->ReadUnsigned();
1878 for (intptr_t i = 0; i < count; i++) {
1880 data->value.as_typed_data.length = d->ReadUnsigned();
1881 data->value.as_typed_data.type = Dart_TypedData_kUint8;
1882 FinalizableData finalizable_data = d->finalizable_data()->Get();
1883 data->value.as_typed_data.values =
1884 reinterpret_cast<const uint8_t*>(finalizable_data.data);
1885 d->AssignRef(data);
1886 }
1887 }
@ Dart_TypedData_kUint8
Definition: dart_api.h:2615
@ Dart_CObject_kTypedData
static int8_t data[kExtLength]

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