| Flutter iOS Embedder |

Instance Methods | Class Methods | List of all members
<FlutterMessageCodec> Protocol Reference

`#import <FlutterCodecs.h>`

Inheritance diagram for <FlutterMessageCodec>:

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

  message | The 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

  message | The message.

Returns
  The binary encoding, or `nil`, if `message` was `nil`.

Referenced by CheckEncodeDecode(), and TEST().

## ◆ sharedInstance

+ (instancetype) sharedInstance |  |  |

Returns a shared instance of this `FlutterMessageCodec`.

Referenced by CheckEncodeDecode(), FlutterBasicMessageChannel::messageChannelWithName:binaryMessenger:, and TEST().

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

- shell/platform/darwin/common/framework/Headers/FlutterCodecs.h