5#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_codec.h"
15G_DEFINE_TYPE(FlBinaryCodec, fl_binary_codec, fl_message_codec_get_type())
24 "Only uint8[] values supported");
38 static_cast<const uint8_t*
>(g_bytes_get_data(
message, &data_length));
43 FL_MESSAGE_CODEC_CLASS(klass)->encode_message =
45 FL_MESSAGE_CODEC_CLASS(klass)->decode_message =
52 return static_cast<FlBinaryCodec*
>(
53 g_object_new(fl_binary_codec_get_type(),
nullptr));
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
G_MODULE_EXPORT FlBinaryCodec * fl_binary_codec_new()
static GBytes * fl_binary_codec_encode_message(FlMessageCodec *codec, FlValue *value, GError **error)
static FlValue * fl_binary_codec_decode_message(FlMessageCodec *codec, GBytes *message, GError **error)
static void fl_binary_codec_init(FlBinaryCodec *self)
static void fl_binary_codec_class_init(FlBinaryCodecClass *klass)
G_DEFINE_QUARK(fl_binary_messenger_codec_error_quark, fl_binary_messenger_codec_error) G_DECLARE_FINAL_TYPE(FlBinaryMessengerImpl
@ FL_MESSAGE_CODEC_ERROR_UNSUPPORTED_TYPE
#define FL_MESSAGE_CODEC_ERROR
const uint8_t uint32_t uint32_t GError ** error
G_MODULE_EXPORT FlValueType fl_value_get_type(FlValue *self)
G_MODULE_EXPORT const uint8_t * fl_value_get_uint8_list(FlValue *self)
G_MODULE_EXPORT FlValue * fl_value_new_uint8_list(const uint8_t *data, size_t data_length)
G_MODULE_EXPORT size_t fl_value_get_length(FlValue *self)
typedefG_BEGIN_DECLS struct _FlValue FlValue
@ FL_VALUE_TYPE_UINT8_LIST
FlMessageCodec parent_instance
std::shared_ptr< const fml::Mapping > data