Flutter Engine
The Flutter Engine
|
#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_message_codec.h"
#include <gmodule.h>
#include <cstring>
#include "rapidjson/reader.h"
#include "rapidjson/writer.h"
Go to the source code of this file.
Classes | |
struct | _FlJsonMessageCodec |
struct | FlValueHandler |
Functions | |
G_DEFINE_TYPE (FlJsonMessageCodec, fl_json_message_codec, fl_message_codec_get_type()) static gboolean write_value(rapidjson | |
static GBytes * | fl_json_message_codec_encode_message (FlMessageCodec *codec, FlValue *message, GError **error) |
static FlValue * | fl_json_message_codec_decode_message (FlMessageCodec *codec, GBytes *message, GError **error) |
static void | fl_json_message_codec_class_init (FlJsonMessageCodecClass *klass) |
static void | fl_json_message_codec_init (FlJsonMessageCodec *self) |
G_MODULE_EXPORT FlJsonMessageCodec * | fl_json_message_codec_new () |
G_MODULE_EXPORT gchar * | fl_json_message_codec_encode (FlJsonMessageCodec *codec, FlValue *value, GError **error) |
G_MODULE_EXPORT FlValue * | fl_json_message_codec_decode (FlJsonMessageCodec *codec, const gchar *text, GError **error) |
|
static |
Definition at line 297 of file fl_json_message_codec.cc.
G_MODULE_EXPORT FlValue * fl_json_message_codec_decode | ( | FlJsonMessageCodec * | codec, |
const gchar * | text, | ||
GError ** | error | ||
) |
fl_json_message_codec_decode: @codec: an #FlJsonMessageCodec. @text: UTF-8 text in JSON format. @error: (allow-none): #GError location to store the error occurring, or NULL.
Decodes a value from a JSON string.
Returns: an FlValue or NULL on error.
Definition at line 326 of file fl_json_message_codec.cc.
|
static |
Definition at line 258 of file fl_json_message_codec.cc.
G_MODULE_EXPORT gchar * fl_json_message_codec_encode | ( | FlJsonMessageCodec * | codec, |
FlValue * | value, | ||
GError ** | error | ||
) |
fl_json_message_codec_encode: @codec: an #FlJsonMessageCodec. @value: value to encode. @error: (allow-none): #GError location to store the error occurring, or NULL.
Encodes a value to a JSON string.
Returns: a JSON representation of this value or NULL on error.
Definition at line 311 of file fl_json_message_codec.cc.
|
static |
Definition at line 243 of file fl_json_message_codec.cc.
|
static |
Definition at line 304 of file fl_json_message_codec.cc.
G_MODULE_EXPORT FlJsonMessageCodec * fl_json_message_codec_new | ( | ) |
Definition at line 306 of file fl_json_message_codec.cc.
G_DEFINE_TYPE | ( | FlJsonMessageCodec | , |
fl_json_message_codec | , | ||
fl_message_codec_get_type() | |||
) |
Definition at line 20 of file fl_json_message_codec.cc.