#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 367 of file FlutterStandardCodec.mm.
References _range.
- (instancetype) initWithData: | (NSData*) | data |
Create a new FlutterStandardReader
who reads from data
.
Definition at line 359 of file FlutterStandardCodec.mm.
References _range.
- (void) readAlignment: | (UInt8) | alignment |
Advances the read position until it is aligned with alignment
.
Definition at line 396 of file FlutterStandardCodec.mm.
References _range, and FlutterStandardCodecHelperReadAlignment().
- (UInt8) readByte |
Reads a byte value and increments the position.
Definition at line 376 of file FlutterStandardCodec.mm.
References _range, and FlutterStandardCodecHelperReadByte().
- (void) readBytes: | (void*) | destination | |
length: | (NSUInteger) | length | |
Reads a sequence of byte values of length
and increments the position.
Definition at line 371 of file FlutterStandardCodec.mm.
References _range, and FlutterStandardCodecHelperReadBytes().
Referenced by ExtendedReader::readValueOfType:.
- (NSData *) readData: | (NSUInteger) | length |
Reads a sequence of byte values of length
and increments the position.
Definition at line 384 of file FlutterStandardCodec.mm.
References _range.
- (UInt32) readSize |
Reads a 32-bit unsigned integer representing a collection size and increments the position.
Definition at line 380 of file FlutterStandardCodec.mm.
References _range, and FlutterStandardCodecHelperReadSize().
- (NSString *) readUTF8 |
Read a null terminated string encoded with UTF-8/
Definition at line 391 of file FlutterStandardCodec.mm.
References _range, and FlutterStandardCodecHelperReadUTF8().
- (nullable id) readValue |
Reads a byte for FlutterStandardField
the decodes a value matching that type.
See also: -[FlutterStandardWriter writeValue]
Definition at line 400 of file FlutterStandardCodec.mm.
Referenced by ExtendedReader::readValueOfType:.
- (nullable id) readValueOfType: | (UInt8) | type |
Decodes a value matching the type
specified.
See also:
FlutterStandardField
-[FlutterStandardWriter writeValue]
Reimplemented in ExtendedReader.
Definition at line 429 of file FlutterStandardCodec.mm.
References _range, and FlutterStandardCodecHelperReadValueOfType().
Referenced by ExtendedReader::readValueOfType:.