#include <CoreFoundation/CoreFoundation.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
static bool | FlutterStandardFieldIsStandardType (uint8_t field) |
Reader Helpers | |
void | FlutterStandardCodecHelperReadAlignment (unsigned long *location, uint8_t alignment) |
void | FlutterStandardCodecHelperReadBytes (unsigned long *location, unsigned long length, void *destination, CFDataRef data) |
uint8_t | FlutterStandardCodecHelperReadByte (unsigned long *location, CFDataRef data) |
uint32_t | FlutterStandardCodecHelperReadSize (unsigned long *location, CFDataRef data) |
CFStringRef | FlutterStandardCodecHelperReadUTF8 (unsigned long *location, CFDataRef data) |
CFTypeRef | FlutterStandardCodecHelperReadValueOfType (unsigned long *location, CFDataRef data, uint8_t type, CFTypeRef(*ReadValue)(CFTypeRef), CFTypeRef(*ReadTypedDataOfType)(FlutterStandardField, CFTypeRef), CFTypeRef user_data) |
Writer Helpers | |
void | FlutterStandardCodecHelperWriteByte (CFMutableDataRef data, uint8_t value) |
void | FlutterStandardCodecHelperWriteBytes (CFMutableDataRef data, const void *bytes, unsigned long length) |
void | FlutterStandardCodecHelperWriteSize (CFMutableDataRef data, uint32_t size) |
void | FlutterStandardCodecHelperWriteAlignment (CFMutableDataRef data, uint8_t alignment) |
void | FlutterStandardCodecHelperWriteUTF8 (CFMutableDataRef data, CFStringRef value) |
void | FlutterStandardCodecHelperWriteData (CFMutableDataRef data, CFDataRef value) |
bool | FlutterStandardCodecHelperWriteNumber (CFMutableDataRef data, CFNumberRef number) |
Definition at line 44 of file FlutterStandardCodecHelper.h.
enum FlutterStandardField |
Definition at line 19 of file FlutterStandardCodecHelper.h.
void FlutterStandardCodecHelperReadAlignment | ( | unsigned long * | location, |
uint8_t | alignment | ||
) |
Definition at line 18 of file FlutterStandardCodecHelper.cc.
Referenced by FlutterStandardCodecHelperReadValueOfType(), and FlutterStandardReader::readAlignment:.
uint8_t FlutterStandardCodecHelperReadByte | ( | unsigned long * | location, |
CFDataRef | data | ||
) |
Definition at line 42 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperReadBytes().
Referenced by FlutterStandardCodecHelperReadSize(), and FlutterStandardReader::readByte.
void FlutterStandardCodecHelperReadBytes | ( | unsigned long * | location, |
unsigned long | length, | ||
void * | destination, | ||
CFDataRef | data | ||
) |
Definition at line 33 of file FlutterStandardCodecHelper.cc.
Referenced by FlutterStandardCodecHelperReadByte(), FlutterStandardCodecHelperReadSize(), FlutterStandardCodecHelperReadValueOfType(), and FlutterStandardReader::readBytes:length:.
uint32_t FlutterStandardCodecHelperReadSize | ( | unsigned long * | location, |
CFDataRef | data | ||
) |
Definition at line 49 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperReadByte(), and FlutterStandardCodecHelperReadBytes().
Referenced by FlutterStandardCodecHelperReadUTF8(), FlutterStandardCodecHelperReadValueOfType(), and FlutterStandardReader::readSize.
CFStringRef FlutterStandardCodecHelperReadUTF8 | ( | unsigned long * | location, |
CFDataRef | data | ||
) |
Definition at line 75 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperReadSize(), and ReadDataNoCopy().
Referenced by FlutterStandardCodecHelperReadValueOfType(), and FlutterStandardReader::readUTF8.
CFTypeRef FlutterStandardCodecHelperReadValueOfType | ( | unsigned long * | location, |
CFDataRef | data, | ||
uint8_t | type, | ||
CFTypeRef(*)(CFTypeRef) | ReadValue, | ||
CFTypeRef(*)(FlutterStandardField, CFTypeRef) | ReadTypedDataOfType, | ||
CFTypeRef | user_data | ||
) |
Definition at line 103 of file FlutterStandardCodecHelper.cc.
References FastReadValue(), FlutterStandardCodecHelperReadAlignment(), FlutterStandardCodecHelperReadBytes(), FlutterStandardCodecHelperReadSize(), FlutterStandardCodecHelperReadUTF8(), FlutterStandardFieldFalse, FlutterStandardFieldFloat32Data, FlutterStandardFieldFloat64, FlutterStandardFieldFloat64Data, FlutterStandardFieldInt32, FlutterStandardFieldInt32Data, FlutterStandardFieldInt64, FlutterStandardFieldInt64Data, FlutterStandardFieldIntHex, FlutterStandardFieldList, FlutterStandardFieldMap, FlutterStandardFieldNil, FlutterStandardFieldString, FlutterStandardFieldTrue, FlutterStandardFieldUInt8Data, and user_data.
Referenced by FastReadValue(), and FlutterStandardReader::readValueOfType:.
void FlutterStandardCodecHelperWriteAlignment | ( | CFMutableDataRef | data, |
uint8_t | alignment | ||
) |
Definition at line 201 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperWriteByte().
Referenced by FlutterStandardCodecHelperWriteNumber(), and FlutterStandardWriter::writeAlignment:.
void FlutterStandardCodecHelperWriteByte | ( | CFMutableDataRef | data, |
uint8_t | value | ||
) |
Definition at line 178 of file FlutterStandardCodecHelper.cc.
Referenced by FlutterStandardCodecHelperWriteAlignment(), FlutterStandardCodecHelperWriteNumber(), FlutterStandardCodecHelperWriteSize(), and FlutterStandardWriter::writeByte:.
void FlutterStandardCodecHelperWriteBytes | ( | CFMutableDataRef | data, |
const void * | bytes, | ||
unsigned long | length | ||
) |
Definition at line 182 of file FlutterStandardCodecHelper.cc.
Referenced by FlutterStandardCodecHelperWriteData(), FlutterStandardCodecHelperWriteNumber(), FlutterStandardCodecHelperWriteSize(), FlutterStandardCodecHelperWriteUTF8(), and FlutterStandardWriter::writeBytes:length:.
void FlutterStandardCodecHelperWriteData | ( | CFMutableDataRef | data, |
CFDataRef | value | ||
) |
Definition at line 232 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperWriteBytes().
Referenced by FlutterStandardWriter::writeData:.
bool FlutterStandardCodecHelperWriteNumber | ( | CFMutableDataRef | data, |
CFNumberRef | number | ||
) |
Definition at line 239 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperWriteAlignment(), FlutterStandardCodecHelperWriteByte(), FlutterStandardCodecHelperWriteBytes(), FlutterStandardFieldFalse, FlutterStandardFieldFloat64, FlutterStandardFieldInt32, FlutterStandardFieldInt64, and FlutterStandardFieldTrue.
void FlutterStandardCodecHelperWriteSize | ( | CFMutableDataRef | data, |
uint32_t | size | ||
) |
Definition at line 188 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperWriteByte(), and FlutterStandardCodecHelperWriteBytes().
Referenced by FlutterStandardCodecHelperWriteUTF8(), and FlutterStandardWriter::writeSize:.
void FlutterStandardCodecHelperWriteUTF8 | ( | CFMutableDataRef | data, |
CFStringRef | value | ||
) |
Definition at line 211 of file FlutterStandardCodecHelper.cc.
References FlutterStandardCodecHelperWriteBytes(), and FlutterStandardCodecHelperWriteSize().
Referenced by FlutterStandardWriter::writeUTF8:.
|
inlinestatic |
Definition at line 39 of file FlutterStandardCodecHelper.h.
References FlutterStandardFieldFloat32Data, and FlutterStandardFieldNil.
Referenced by FastReadValue().