#import <FlutterCodecs.h>
Class Methods | |
| (instancetype) | + typedDataWithBytes: |
| (instancetype) | + typedDataWithInt32: |
| (instancetype) | + typedDataWithInt64: |
| (instancetype) | + typedDataWithFloat32: |
| (instancetype) | + typedDataWithFloat64: |
Properties | |
| NSData * | data |
| FlutterStandardDataType | type |
| UInt32 | elementCount |
| UInt8 | elementSize |
A byte buffer holding UInt8, SInt32, SInt64, or Float64 values, used with FlutterStandardMessageCodec and FlutterStandardMethodCodec.
Two's complement encoding is used for signed integers. IEEE754 double-precision representation is used for floats. The platform's native endianness is assumed.
Definition at line 300 of file FlutterCodecs.h.
| + (instancetype) typedDataWithBytes: | (NSData*) | data |
Creates a FlutterStandardTypedData which interprets the specified data as plain bytes.
| data | the byte data. |
Definition at line 8 of file FlutterStandardCodec.mm.
Referenced by TEST().
| + (instancetype) typedDataWithFloat32: | (NSData*) | data |
Creates a FlutterStandardTypedData which interprets the specified data as 32-bit floats.
| data | the byte data. The length must be divisible by 8. |
Definition at line 8 of file FlutterStandardCodec.mm.
Referenced by TEST().
| + (instancetype) typedDataWithFloat64: | (NSData*) | data |
Creates a FlutterStandardTypedData which interprets the specified data as 64-bit floats.
| data | the byte data. The length must be divisible by 8. |
Definition at line 8 of file FlutterStandardCodec.mm.
Referenced by TEST().
| + (instancetype) typedDataWithInt32: | (NSData*) | data |
Creates a FlutterStandardTypedData which interprets the specified data as 32-bit signed integers.
| data | the byte data. The length must be divisible by 4. |
Definition at line 8 of file FlutterStandardCodec.mm.
Referenced by TEST().
| + (instancetype) typedDataWithInt64: | (NSData*) | data |
Creates a FlutterStandardTypedData which interprets the specified data as 64-bit signed integers.
| data | the byte data. The length must be divisible by 8. |
Definition at line 8 of file FlutterStandardCodec.mm.
Referenced by TEST().
|
readnonatomicassign |
The raw underlying data buffer.
Definition at line 344 of file FlutterCodecs.h.
Referenced by FlutterStandardWriter::writeValue:.
|
readnonatomicassign |
The number of value items encoded.
Definition at line 354 of file FlutterCodecs.h.
Referenced by FlutterStandardWriter::writeValue:.
|
readnonatomicassign |
The number of bytes used by the encoding of a single value item.
Definition at line 359 of file FlutterCodecs.h.
Referenced by FlutterStandardWriter::writeValue:.
|
readnonatomicassign |
The type of the encoded values.
Definition at line 349 of file FlutterCodecs.h.
Referenced by FlutterStandardWriter::writeValue:.