Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
dart::FlowGraphSerializer::WriteTrait< ZoneGrowableArray< T > * > Struct Template Reference

#include <il_serializer.h>

Public Types

using ArgType = const ZoneGrowableArray< T > *
 

Static Public Member Functions

static void Write (FlowGraphSerializer *s, ArgType x)
 

Detailed Description

template<typename T>
struct dart::FlowGraphSerializer::WriteTrait< ZoneGrowableArray< T > * >

Definition at line 195 of file il_serializer.h.

Member Typedef Documentation

◆ ArgType

template<typename T >
using dart::FlowGraphSerializer::WriteTrait< ZoneGrowableArray< T > * >::ArgType = const ZoneGrowableArray<T>*

Definition at line 196 of file il_serializer.h.

Member Function Documentation

◆ Write()

template<typename T >
static void dart::FlowGraphSerializer::WriteTrait< ZoneGrowableArray< T > * >::Write ( FlowGraphSerializer s,
ArgType  x 
)
inlinestatic

Definition at line 197 of file il_serializer.h.

197 {
198 if (x == nullptr) {
199 s->Write<intptr_t>(-1);
200 return;
201 }
202 const intptr_t len = x->length();
203 s->Write<intptr_t>(len);
204 for (intptr_t i = 0; i < len; ++i) {
205 s->Write<T>((*x)[i]);
206 }
207 }
struct MyStruct s
double x
#define T

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