#import <FlutterCodecs.h>
Instance Methods | |
| (instancetype) | - initWithData: |
| (void) | - writeByte: |
| (void) | - writeBytes:length: |
| (void) | - writeData: |
| (void) | - writeSize: |
| (void) | - writeAlignment: |
| (void) | - writeUTF8: |
| (void) | - writeValue: |
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.
| - (instancetype) initWithData: | (NSMutableData*) | data |
Create a FlutterStandardWriter who will write to data.
Definition at line 206 of file FlutterStandardCodec.mm.
| - (void) writeAlignment: | (UInt8) | alignment |
Write zero padding until data is aligned with alignment.
Definition at line 229 of file FlutterStandardCodec.mm.
References FlutterStandardCodecHelperWriteAlignment().
| - (void) writeByte: | (UInt8) | value |
Write a 8-bit byte.
Definition at line 213 of file FlutterStandardCodec.mm.
References FlutterStandardCodecHelperWriteByte().
Referenced by ExtendedWriter::writeValue:.
| - (void) writeBytes: | (const void*) | bytes | |
| length: | (NSUInteger) | length | |
Write an array of bytes of size length.
Definition at line 217 of file FlutterStandardCodec.mm.
References FlutterStandardCodecHelperWriteBytes().
Referenced by ExtendedWriter::writeValue:.
| - (void) writeData: | (NSData*) | data |
Write an array of bytes contained in data.
Definition at line 221 of file FlutterStandardCodec.mm.
References FlutterStandardCodecHelperWriteData().
| - (void) writeSize: | (UInt32) | size |
Write 32-bit unsigned integer that represents a size of a collection.
Definition at line 225 of file FlutterStandardCodec.mm.
References FlutterStandardCodecHelperWriteSize().
| - (void) writeUTF8: | (NSString*) | value |
Write a string with UTF-8 encoding.
Definition at line 233 of file FlutterStandardCodec.mm.
References FlutterStandardCodecHelperWriteUTF8().
| - (void) writeValue: | (id) | value |
Introspects into an object and writes its representation.
Supported Data Types:
NSAsserts on failure.
Reimplemented in ExtendedWriter.
Definition at line 347 of file FlutterStandardCodec.mm.
References self.
Referenced by ExtendedWriter::writeValue:.