Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | Class Methods | List of all members
<FlutterMessageCodec> Protocol Reference

#include <FlutterCodecs.h>

Inheritance diagram for <FlutterMessageCodec>:
FlutterBinaryCodec FlutterJSONMessageCodec FlutterStandardMessageCodec FlutterStringCodec

Instance Methods

(NSData *_Nullable) - encode:
 
(id _Nullable) - decode:
 

Class Methods

(instancetype) + sharedInstance
 

Detailed Description

A message encoding/decoding mechanism.

Definition at line 18 of file FlutterCodecs.h.

Method Documentation

◆ decode:

- (id _Nullable) decode: (NSData *_Nullable)  message

Decodes the specified message from binary.

Parameters
messageThe message.
Returns
The decoded message, or nil, if message was nil.

◆ encode:

- (NSData *_Nullable) encode: (id _Nullable)  message

Encodes the specified message into binary.

Parameters
messageThe message.
Returns
The binary encoding, or nil, if message was nil.

◆ sharedInstance

+ (instancetype) sharedInstance

The documentation for this protocol was generated from the following file: