| Flutter Linux Embedder |

fl_binary_codec.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_CODEC_H_
7
8 #if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
9 #error "Only <flutter_linux/flutter_linux.h> can be included directly."
10 #endif
11
12 #include <gmodule.h>
13
14 #include "fl_message_codec.h"
15
16 G_BEGIN_DECLS
17
18 G_MODULE_EXPORT
19 G_DECLARE_FINAL_TYPE(FlBinaryCodec,
20 fl_binary_codec,
21 FL,
22 BINARY_CODEC,
23 FlMessageCodec)
24
25 /**
26 * FlBinaryCodec:
27 *
28 * #FlBinaryCodec is an #FlMessageCodec that implements the Flutter binary
29 * message encoding. This only encodes and decodes #FlValue of type
30 * #FL_VALUE_TYPE_UINT8_LIST, other types #FlValues will generate an error
31 * during encoding.
32 *
33 * #FlBinaryCodec matches the BinaryCodec class in the Flutter services
34 * library.
35 */
36
37 /**
38 * fl_binary_codec_new:
39 *
40 * Creates an #FlBinaryCodec.
41 *
42 * Returns: a new #FlBinaryCodec.
43 */
44 FlBinaryCodec* fl_binary_codec_new();
45
46 G_END_DECLS
47
48 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_BINARY_CODEC_H_
fl_message_codec.h
FL
FL
Definition: fl_binary_messenger.cc:27
fl_binary_codec_new
G_MODULE_EXPORT FlBinaryCodec * fl_binary_codec_new()
Definition: fl_binary_codec.cc:51
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_MODULE_EXPORT G_DECLARE_FINAL_TYPE(FlBinaryCodec, fl_binary_codec, FL, BINARY_CODEC, FlMessageCodec) FlBinaryCodec *fl_binary_codec_new()