#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_codec.h"#include "flutter/shell/platform/linux/fl_method_codec_private.h"#include <gmodule.h>Go to the source code of this file.
Functions | |
| static void | fl_method_codec_class_init (FlMethodCodecClass *klass) |
| static void | fl_method_codec_init (FlMethodCodec *self) |
| GBytes * | fl_method_codec_encode_method_call (FlMethodCodec *self, const gchar *name, FlValue *args, GError **error) |
| gboolean | fl_method_codec_decode_method_call (FlMethodCodec *self, GBytes *message, gchar **name, FlValue **args, GError **error) |
| GBytes * | fl_method_codec_encode_success_envelope (FlMethodCodec *self, FlValue *result, GError **error) |
| GBytes * | fl_method_codec_encode_error_envelope (FlMethodCodec *self, const gchar *code, const gchar *message, FlValue *details, GError **error) |
| GBytes * | fl_method_codec_encode_response (FlMethodCodec *self, FlMethodResponse *response, GError **error) |
| FlMethodResponse * | fl_method_codec_decode_response (FlMethodCodec *self, GBytes *message, GError **error) |
|
static |
Definition at line 12 of file fl_method_codec.cc.
| gboolean fl_method_codec_decode_method_call | ( | FlMethodCodec * | self, |
| GBytes * | message, | ||
| gchar ** | name, | ||
| FlValue ** | args, | ||
| GError ** | error | ||
| ) |
Definition at line 27 of file fl_method_codec.cc.
References args, error, message, name, and self.
Referenced by decode_error_method_call(), decode_error_method_call(), decode_method_call(), decode_method_call(), fl_mock_binary_messenger_send_on_channel(), message_cb(), message_cb(), TEST(), and test_method_codec_decode_method_call().
| FlMethodResponse * fl_method_codec_decode_response | ( | FlMethodCodec * | self, |
| GBytes * | message, | ||
| GError ** | error | ||
| ) |
Definition at line 88 of file fl_method_codec.cc.
References error, fl_method_not_implemented_response_new(), message, and self.
Referenced by decode_error_response(), decode_error_response(), decode_response_with_error(), decode_response_with_error(), decode_response_with_success(), decode_response_with_success(), finish_method(), fl_method_channel_invoke_method_finish(), fl_mock_binary_messenger_send_on_channel(), invoke_method_cb(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and test_method_codec_decode_response().
| GBytes * fl_method_codec_encode_error_envelope | ( | FlMethodCodec * | self, |
| const gchar * | code, | ||
| const gchar * | message, | ||
| FlValue * | details, | ||
| GError ** | error | ||
| ) |
Definition at line 50 of file fl_method_codec.cc.
References error, message, and self.
Referenced by encode_error_envelope(), encode_error_envelope(), fl_event_channel_send_error(), fl_method_codec_encode_response(), message_cb(), TEST(), TEST(), TEST(), and TEST().
| GBytes * fl_method_codec_encode_method_call | ( | FlMethodCodec * | self, |
| const gchar * | name, | ||
| FlValue * | args, | ||
| GError ** | error | ||
| ) |
Definition at line 16 of file fl_method_codec.cc.
References args, error, name, and self.
Referenced by encode_method_call(), encode_method_call(), fl_method_channel_invoke_method(), fl_mock_binary_messenger_invoke_method(), resize_channel(), set_warns_on_channel_overflow(), TEST(), TEST(), TEST(), TEST(), and test_method_codec_encode_method_call().
| GBytes * fl_method_codec_encode_response | ( | FlMethodCodec * | self, |
| FlMethodResponse * | response, | ||
| GError ** | error | ||
| ) |
Definition at line 62 of file fl_method_codec.cc.
References error, fl_method_codec_encode_error_envelope(), fl_method_codec_encode_success_envelope(), fl_method_error_response_get_code(), fl_method_error_response_get_details(), fl_method_error_response_get_message(), fl_method_success_response_get_result(), and self.
Referenced by fl_method_channel_respond(), fl_mock_binary_messenger_method_channel_respond(), and fl_mock_binary_messenger_send_on_channel().
| GBytes * fl_method_codec_encode_success_envelope | ( | FlMethodCodec * | codec, |
| FlValue * | result, | ||
| GError ** | error | ||
| ) |
fl_method_codec_encode_success_envelope: @codec: an #FlMethodCodec.
Encodes a successful response to a method call.
Returns: (transfer full): a binary encoding of this response or NULL if not able to encode.
Definition at line 41 of file fl_method_codec.cc.
Referenced by encode_success_envelope(), encode_success_envelope(), fl_event_channel_send(), fl_method_codec_encode_response(), message_cb(), TEST(), TEST(), TEST(), and TEST().
|
static |
Definition at line 14 of file fl_method_codec.cc.