Flutter Engine
fl_binary_codec.h File Reference
#include "fl_message_codec.h"

Go to the source code of this file.

Functions

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE (FlBinaryCodec, fl_binary_codec, FL, BINARY_CODEC, FlMessageCodec) FlBinaryCodec *fl_binary_codec_new()
 

Function Documentation

◆ G_DECLARE_FINAL_TYPE()

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE ( FlBinaryCodec  ,
fl_binary_codec  ,
FL  ,
BINARY_CODEC  ,
FlMessageCodec   
)

FlBinaryCodec:

#FlBinaryCodec is an #FlMessageCodec that implements the Flutter binary message encoding. This only encodes and decodes FlValue of type FL_VALUE_TYPE_UINT8_LIST, other types #FlValues will generate an error during encoding.

#FlBinaryCodec matches the BinaryCodec class in the Flutter services library. fl_binary_codec_new:

Creates an #FlBinaryCodec.

Returns: a new #FlBinaryCodec.