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

#include <il_serializer.h>

Public Types

using ArgType = const GrowableArray< T > &
 

Static Public Member Functions

static void Write (FlowGraphSerializer *s, ArgType x)
 

Detailed Description

template<typename T>
struct dart::FlowGraphSerializer::WriteTrait< GrowableArray< T > >

Definition at line 175 of file il_serializer.h.

Member Typedef Documentation

◆ ArgType

template<typename T >
using dart::FlowGraphSerializer::WriteTrait< GrowableArray< T > >::ArgType = const GrowableArray<T>&

Definition at line 176 of file il_serializer.h.

Member Function Documentation

◆ Write()

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

Definition at line 177 of file il_serializer.h.

177 {
178 const intptr_t len = x.length();
179 s->Write<intptr_t>(len);
180 for (intptr_t i = 0; i < len; ++i) {
181 s->Write<T>(x[i]);
182 }
183 }
struct MyStruct s
double x
#define T

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