# FlutterStandardMessageCodec

Objective-C

    @interface FlutterStandardMessageCodec : NSObject <FlutterMessageCodec>

Swift

    class FlutterStandardMessageCodec : NSObject, FlutterMessageCodec

A `FlutterMessageCodec` using the Flutter standard binary encoding.

This codec is guaranteed to be compatible with the corresponding StandardMessageCodec on the Dart side. These parts of the Flutter SDK are evolved synchronously.

Supported messages are acyclic values of these forms:

- `nil` or `NSNull`
- `NSNumber` (including their representation of Boolean values)
- `NSString`
- `FlutterStandardTypedData`
- `NSArray` of supported values
- `NSDictionary` with supported keys and values

On the Dart side, these values are represented as follows:

- `nil` or `NSNull`: null
- `NSNumber`: `bool`, `int`, or `double`, depending on the contained value.
- `NSString`: `String`
- `FlutterStandardTypedData`: `Uint8List`, `Int32List`, `Int64List`, or `Float64List`
- `NSArray`: `List`
- `NSDictionary`: `Map`

- `+codecWithReaderWriter:`

  Create a `FlutterStandardMessageCodec` who will read and write to \p readerWriter.

  #### Declaration

  Objective-C

      + (nonnull instancetype)codecWithReaderWriter:
          (nonnull FlutterStandardReaderWriter *)readerWriter;

  Swift

      convenience init(readerWriter: FlutterStandardReaderWriter)

© 2023 Flutter. All rights reserved. (Last updated: 2023-05-08)

Generated by jazzy ♪♫ v0.14.3, a Realm project.