Flutter Engine
The Flutter Engine
message_snapshot.h
Go to the documentation of this file.
1// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_VM_MESSAGE_SNAPSHOT_H_
6#define RUNTIME_VM_MESSAGE_SNAPSHOT_H_
7
8#include <memory>
9
11#include "vm/message.h"
12#include "vm/object.h"
13
14namespace dart {
15
16std::unique_ptr<Message> WriteMessage(bool same_group,
17 const Object& obj,
18 Dart_Port dest_port,
19 Message::Priority priority);
20
21std::unique_ptr<Message> WriteApiMessage(Zone* zone,
22 Dart_CObject* obj,
23 Dart_Port dest_port,
24 Message::Priority priority);
25
26ObjectPtr ReadObjectGraphCopyMessage(Thread* thread, PersistentHandle* handle);
27
28ObjectPtr ReadMessage(Thread* thread, Message* message);
29
31
32} // namespace dart
33
34#endif // RUNTIME_VM_MESSAGE_SNAPSHOT_H_
int64_t Dart_Port
Definition: dart_api.h:1525
Win32Message message
Definition: dart_vm.cc:33
ObjectPtr ReadMessage(Thread *thread, Message *message)
ObjectPtr ReadObjectGraphCopyMessage(Thread *thread, PersistentHandle *handle)
Dart_CObject * ReadApiMessage(Zone *zone, Message *message)
std::unique_ptr< Message > WriteMessage(bool same_group, const Object &obj, Dart_Port dest_port, Message::Priority priority)
std::unique_ptr< Message > WriteApiMessage(Zone *zone, Dart_CObject *obj, Dart_Port dest_port, Message::Priority priority)