Definition at line 2461 of file message_snapshot.cc.
◆ OneByteStringMessageSerializationCluster()
dart::OneByteStringMessageSerializationCluster::OneByteStringMessageSerializationCluster |
( |
Zone * |
zone, |
|
|
bool |
is_canonical |
|
) |
| |
|
inlineexplicit |
Definition at line 2464 of file message_snapshot.cc.
2468 kOneByteStringCid,
2470 objects_(zone, 0) {}
bool is_canonical() const
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)
◆ ~OneByteStringMessageSerializationCluster()
dart::OneByteStringMessageSerializationCluster::~OneByteStringMessageSerializationCluster |
( |
| ) |
|
|
inline |
◆ Trace()
◆ TraceApi()
◆ WriteNodes()
void dart::OneByteStringMessageSerializationCluster::WriteNodes |
( |
MessageSerializer * |
s | ) |
|
|
inlinevirtual |
◆ WriteNodesApi()
Reimplemented from dart::MessageSerializationCluster.
Definition at line 2495 of file message_snapshot.cc.
2495 {
2496 intptr_t
count = objects_.length();
2498 for (intptr_t
i = 0;
i <
count;
i++) {
2501
2502 const uint8_t* utf8_str =
2507
2508 uint8_t* latin1_str = reinterpret_cast<uint8_t*>(
2510 bool success =
2513 s->WriteUnsigned(latin1_len);
2514 s->WriteBytes(latin1_str, latin1_len);
2515 ::free(latin1_str);
2516 }
2517 }
static intptr_t CodeUnitCount(const uint8_t *utf8_array, intptr_t array_len, Type *type)
static bool DecodeToLatin1(const uint8_t *utf8_array, intptr_t array_len, uint8_t *dst, intptr_t len)
void * malloc(size_t size)
union _Dart_CObject::@86 value
The documentation for this class was generated from the following file: