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

Public Member Functions

 MintMessageDeserializationCluster (bool is_canonical)
 
 ~MintMessageDeserializationCluster ()
 
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 919 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ MintMessageDeserializationCluster()

dart::MintMessageDeserializationCluster::MintMessageDeserializationCluster ( bool  is_canonical)
inlineexplicit

Definition at line 921 of file message_snapshot.cc.

MessageDeserializationCluster(const char *name, bool is_canonical=false)

◆ ~MintMessageDeserializationCluster()

dart::MintMessageDeserializationCluster::~MintMessageDeserializationCluster ( )
inline

Definition at line 923 of file message_snapshot.cc.

923{}

Member Function Documentation

◆ ReadNodes()

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

Implements dart::MessageDeserializationCluster.

Definition at line 925 of file message_snapshot.cc.

925 {
926 const intptr_t count = d->ReadUnsigned();
927 for (intptr_t i = 0; i < count; i++) {
928 int64_t value = d->Read<int64_t>();
929 d->AssignRef(is_canonical() ? Mint::NewCanonical(value)
930 : Mint::New(value));
931 }
932 }
int count
Definition: FontMgrTest.cpp:50
static MintPtr NewCanonical(int64_t value)
Definition: object.cc:23314
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
uint8_t value

◆ ReadNodesApi()

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

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 934 of file message_snapshot.cc.

934 {
935 intptr_t count = d->ReadUnsigned();
936 for (intptr_t i = 0; i < count; i++) {
937 int64_t value = d->Read<int64_t>();
938 Dart_CObject* mint;
939 if ((kMinInt32 <= value) && (value <= kMaxInt32)) {
940 mint = d->Allocate(Dart_CObject_kInt32);
941 mint->value.as_int32 = value;
942 } else {
943 mint = d->Allocate(Dart_CObject_kInt64);
944 mint->value.as_int64 = value;
945 }
946 d->AssignRef(mint);
947 }
948 }
@ Dart_CObject_kInt64
@ Dart_CObject_kInt32
constexpr int32_t kMinInt32
Definition: globals.h:482
constexpr int32_t kMaxInt32
Definition: globals.h:483

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