Flutter Engine
The Flutter Engine
|
#import <FlutterCodecs.h>
Instance Methods | |
(instancetype) | - initWithData: |
(void) | - writeByte: |
(void) | - writeBytes:length: |
(void) | - writeData: |
(void) | - writeSize: |
(void) | - writeAlignment: |
(void) | - writeUTF8: |
(void) | - writeValue: |
Class Methods | |
(static FlutterStandardCodecObjcType) | + GetWriteType [implementation] |
(static void) | + WriteKeyValues [implementation] |
(static void) | + FastWriteValueOfType [implementation] |
(static void) | + WriteValueOfType [implementation] |
A writer of the Flutter standard binary encoding.
See FlutterStandardMessageCodec
for details on the encoding.
The encoding is extensible via subclasses overriding writeValue
.
Definition at line 92 of file FlutterCodecs.h.
|
implementation |
Definition at line 271 of file FlutterStandardCodec.mm.
|
implementation |
Definition at line 238 of file FlutterStandardCodec.mm.
- (instancetype) initWithData: | (NSMutableData*) | data |
Create a FlutterStandardWriter
who will write to data
.
Definition at line 8 of file FlutterStandardCodec.mm.
- (void) writeAlignment: | (UInt8) | alignment |
Write zero padding until data is aligned with alignment
.
Definition at line 8 of file FlutterStandardCodec.mm.
- (void) writeByte: | (UInt8) | value |
Write a 8-bit byte.
Definition at line 8 of file FlutterStandardCodec.mm.
- (void) writeBytes: | (const void*) | bytes | |
length: | (NSUInteger) | length | |
Write an array of bytes
of size length
.
Definition at line 8 of file FlutterStandardCodec.mm.
- (void) writeData: | (NSData*) | data |
Write an array of bytes contained in data
.
Definition at line 8 of file FlutterStandardCodec.mm.
|
implementation |
Definition at line 263 of file FlutterStandardCodec.mm.
- (void) writeSize: | (UInt32) | size |
Write 32-bit unsigned integer that represents a size
of a collection.
Definition at line 8 of file FlutterStandardCodec.mm.
- (void) writeUTF8: | (NSString*) | value |
Write a string with UTF-8 encoding.
Definition at line 8 of file FlutterStandardCodec.mm.
- (void) writeValue: | (id) | value |
Introspects into an object and writes its representation.
Supported Data Types:
NSAsserts on failure.
Reimplemented in ExtendedWriter.
Definition at line 280 of file FlutterStandardCodec.mm.
|
implementation |
Definition at line 280 of file FlutterStandardCodec.mm.