Flutter Engine
The Flutter Engine
|
#import <FlutterCodecs.h>
Instance Methods | |
(NSData *_Nullable) | - encode: |
(id _Nullable) | - decode: |
Class Methods | |
(instancetype) | + sharedInstance |
A message encoding/decoding mechanism.
Definition at line 18 of file FlutterCodecs.h.
- (id _Nullable) decode: | (NSData *_Nullable) | message |
Decodes the specified message from binary.
message | The message. |
nil
, if message
was nil
. - (NSData *_Nullable) encode: | (id _Nullable) | message |
Encodes the specified message into binary.
message | The message. |
nil
, if message
was nil
. + (instancetype) sharedInstance |
Returns a shared instance of this FlutterMessageCodec
.
Reimplemented in FlutterBinaryCodec, FlutterStringCodec, FlutterJSONMessageCodec, and FlutterStandardMessageCodec.