#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 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.
| - (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.
References FlutterStandardTypedData::data, FlutterStandardTypedData::elementCount, FlutterStandardTypedData::elementSize, FlutterStandardCodecHelperWriteAlignment(), FlutterStandardCodecHelperWriteByte(), FlutterStandardCodecHelperWriteData(), FlutterStandardCodecHelperWriteNumber(), FlutterStandardCodecHelperWriteSize(), FlutterStandardCodecHelperWriteUTF8(), FlutterStandardCodecObjcTypeFlutterStandardTypedData, FlutterStandardCodecObjcTypeNil, FlutterStandardCodecObjcTypeNSArray, FlutterStandardCodecObjcTypeNSData, FlutterStandardCodecObjcTypeNSDictionary, FlutterStandardCodecObjcTypeNSNumber, FlutterStandardCodecObjcTypeNSString, FlutterStandardCodecObjcTypeUnknown, flutter::FlutterStandardFieldForDataType(), FlutterStandardFieldList, FlutterStandardFieldMap, FlutterStandardFieldNil, FlutterStandardFieldString, FlutterStandardTypedData::type, and WriteKeyValuesInfo::writer.