Flutter iOS Embedder
<FlutterMessageCodec> Protocol Reference

#import <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.

Referenced by CheckEncodeDecode(), and TEST().

◆ 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.

Referenced by CheckEncodeDecode(), and TEST().

◆ sharedInstance

+ (instancetype) sharedInstance

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