#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
. Referenced by CheckEncodeDecode(), and TEST().
- (NSData* _Nullable) encode: | (id _Nullable) | message |
Encodes the specified message into binary.
message | The message. |
nil
, if message
was nil
. Referenced by CheckEncodeDecode(), and TEST().
+ (instancetype) sharedInstance |
Returns a shared instance of this FlutterMessageCodec
.
Referenced by CheckEncodeDecode(), FlutterBasicMessageChannel::messageChannelWithName:binaryMessenger:, and TEST().