Flutter Engine
The Flutter Engine
|
#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) |
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.
FlMethodResponse * fl_method_codec_decode_response | ( | FlMethodCodec * | self, |
GBytes * | message, | ||
GError ** | error | ||
) |
Definition at line 62 of file fl_method_codec.cc.
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.
GBytes * fl_method_codec_encode_method_call | ( | FlMethodCodec * | self, |
const gchar * | name, | ||
FlValue * | args, | ||
GError ** | error | ||
) |
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.
|
static |
Definition at line 14 of file fl_method_codec.cc.