5#include "flutter/shell/platform/linux/public/flutter_linux/fl_string_codec.h"
17G_DEFINE_TYPE(FlStringCodec, fl_string_codec, fl_message_codec_get_type())
26 "Only string values supported");
31 return g_bytes_new(
text, strlen(
text));
40 static_cast<const gchar*
>(g_bytes_get_data(
message, &data_length));
45 FL_MESSAGE_CODEC_CLASS(klass)->encode_message =
47 FL_MESSAGE_CODEC_CLASS(klass)->decode_message =
54 return static_cast<FlStringCodec*
>(
55 g_object_new(fl_string_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_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
static void fl_string_codec_init(FlStringCodec *self)
static GBytes * fl_string_codec_encode_message(FlMessageCodec *codec, FlValue *value, GError **error)
static void fl_string_codec_class_init(FlStringCodecClass *klass)
G_MODULE_EXPORT FlStringCodec * fl_string_codec_new()
static FlValue * fl_string_codec_decode_message(FlMessageCodec *codec, GBytes *message, GError **error)
G_MODULE_EXPORT FlValueType fl_value_get_type(FlValue *self)
G_MODULE_EXPORT const gchar * fl_value_get_string(FlValue *self)
G_MODULE_EXPORT FlValue * fl_value_new_string_sized(const gchar *value, size_t value_length)
typedefG_BEGIN_DECLS struct _FlValue FlValue
FlMessageCodec parent_instance
std::shared_ptr< const fml::Mapping > data