#import <FlutterCodecs.h>
Instance Methods | |
| (instancetype) | - initWithData: |
| (BOOL) | - hasMore |
| (UInt8) | - readByte |
| (void) | - readBytes:length: |
| (NSData *) | - readData: |
| (UInt32) | - readSize |
| (void) | - readAlignment: |
| (NSString *) | - readUTF8 |
| (nullable id) | - readValue |
| (nullable id) | - readValueOfType: |
A reader of the Flutter standard binary encoding.
See FlutterStandardMessageCodec for details on the encoding.
The encoding is extensible via subclasses overriding readValueOfType.
Definition at line 132 of file FlutterCodecs.h.
| - (BOOL) hasMore |
Returns YES when the reader hasn't reached the end of its data.
Definition at line 356 of file FlutterStandardCodec.mm.
| - (instancetype) initWithData: | (NSData*) | data |
Create a new FlutterStandardReader who reads from data.
Definition at line 356 of file FlutterStandardCodec.mm.
| - (void) readAlignment: | (UInt8) | alignment |
Advances the read position until it is aligned with alignment.
Definition at line 356 of file FlutterStandardCodec.mm.
| - (UInt8) readByte |
Reads a byte value and increments the position.
Definition at line 356 of file FlutterStandardCodec.mm.
| - (void) readBytes: | (void*) | destination | |
| length: | (NSUInteger) | length | |
Reads a sequence of byte values of length and increments the position.
Definition at line 356 of file FlutterStandardCodec.mm.
| - (NSData *) readData: | (NSUInteger) | length |
Reads a sequence of byte values of length and increments the position.
Definition at line 356 of file FlutterStandardCodec.mm.
| - (UInt32) readSize |
Reads a 32-bit unsigned integer representing a collection size and increments the position.
Definition at line 356 of file FlutterStandardCodec.mm.
| - (NSString *) readUTF8 |
Read a null terminated string encoded with UTF-8/
Definition at line 356 of file FlutterStandardCodec.mm.
| - (nullable id) readValue |
Reads a byte for FlutterStandardField the decodes a value matching that type.
See also: -[FlutterStandardWriter writeValue]
Definition at line 356 of file FlutterStandardCodec.mm.
| - (nullable id) readValueOfType: | (UInt8) | type |
Decodes a value matching the type specified.
See also:
FlutterStandardField-[FlutterStandardWriter writeValue] Reimplemented in ExtendedReader.
Definition at line 411 of file FlutterStandardCodec.mm.