Flutter Engine
FlutterEngineDartObject Struct Reference

#include <embedder.h>

Public Attributes

FlutterEngineDartObjectType type
 
union {
   bool   bool_value
 
   int32_t   int32_value
 
   int64_t   int64_value
 
   double   double_value
 
   const char *   string_value
 
   const FlutterEngineDartBuffer *   buffer_value
 
}; 
 

Detailed Description

This struct specifies the native representation of a Dart object that can be sent via a send port to any isolate in the VM that has the corresponding receive port.

All fields in this struct are copied out in the call to FlutterEnginePostDartObject and the caller is free to reuse or collect this struct after that call.

Definition at line 1062 of file embedder.h.

Member Data Documentation

◆ @15

union { ... }

◆ bool_value

bool FlutterEngineDartObject::bool_value

Definition at line 1065 of file embedder.h.

◆ buffer_value

const FlutterEngineDartBuffer* FlutterEngineDartObject::buffer_value

Definition at line 1073 of file embedder.h.

Referenced by FlutterEnginePostDartObject().

◆ double_value

double FlutterEngineDartObject::double_value

Definition at line 1068 of file embedder.h.

◆ int32_value

int32_t FlutterEngineDartObject::int32_value

Definition at line 1066 of file embedder.h.

◆ int64_value

int64_t FlutterEngineDartObject::int64_value

Definition at line 1067 of file embedder.h.

◆ string_value

const char* FlutterEngineDartObject::string_value

A null terminated string. This string will be copied by the VM in the call to FlutterEnginePostDartObject and must be collected by the embedder after that call is made.

Definition at line 1072 of file embedder.h.

Referenced by FlutterEnginePostDartObject().

◆ type

FlutterEngineDartObjectType FlutterEngineDartObject::type

Definition at line 1063 of file embedder.h.

Referenced by FlutterEnginePostDartObject(), and flutter::testing::TEST_F().


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