#include "flutter/shell/platform/linux/public/flutter_linux/fl_message_codec.h"
#include <gmodule.h>
Go to the source code of this file.
Functions | |
static void | fl_message_codec_class_init (FlMessageCodecClass *klass) |
static void | fl_message_codec_init (FlMessageCodec *self) |
G_MODULE_EXPORT GBytes * | fl_message_codec_encode_message (FlMessageCodec *self, FlValue *message, GError **error) |
G_MODULE_EXPORT FlValue * | fl_message_codec_decode_message (FlMessageCodec *self, GBytes *message, GError **error) |
|
static |
Definition at line 13 of file fl_message_codec.cc.
G_MODULE_EXPORT FlValue* fl_message_codec_decode_message | ( | FlMessageCodec * | codec, |
GBytes * | message, | ||
GError ** | error | ||
) |
fl_message_codec_decode_message: @codec: an #FlMessageCodec. @message: binary message to decode. @error: (allow-none): #GError location to store the error occurring, or NULL.
Decodes a message from a binary encoding.
Returns: an FlValue or NULL on error.
Definition at line 33 of file fl_message_codec.cc.
References error.
Referenced by decode_error_value(), decode_message(), decode_message_with_codec(), decode_semantic_data(), fl_basic_message_channel_send_finish(), fl_json_method_codec_decode_method_call(), fl_json_method_codec_decode_response(), MATCHER_P2(), message_cb(), and TEST().
G_MODULE_EXPORT GBytes* fl_message_codec_encode_message | ( | FlMessageCodec * | codec, |
FlValue * | message, | ||
GError ** | error | ||
) |
fl_message_codec_encode_message: @codec: an #FlMessageCodec. @buffer: buffer to write to. @message: message to encode or NULL to encode the null value. @error: (allow-none): #GError location to store the error occurring, or NULL.
Encodes a message into a binary representation.
Returns: a binary encoded message or NULL on error.
Definition at line 17 of file fl_message_codec.cc.
References error, and fl_value_new_null().
Referenced by encode_message(), encode_message_error(), encode_message_with_codec(), fl_accessible_text_field_perform_action(), fl_basic_message_channel_respond(), fl_basic_message_channel_send(), fl_json_method_codec_encode_error_envelope(), fl_json_method_codec_encode_method_call(), fl_json_method_codec_encode_success_envelope(), perform_set_selection_action(), perform_set_text_action(), set_app_lifecycle_state(), and TEST().
|
static |
Definition at line 15 of file fl_message_codec.cc.