|
const CBOR_API char * | cbor_error_string (CborError error) |
|
CBOR_API void | cbor_encoder_init (CborEncoder *encoder, uint8_t *buffer, size_t size, int flags) |
|
CBOR_API CborError | cbor_encode_uint (CborEncoder *encoder, uint64_t value) |
|
CBOR_API CborError | cbor_encode_int (CborEncoder *encoder, int64_t value) |
|
CBOR_API CborError | cbor_encode_negative_int (CborEncoder *encoder, uint64_t absolute_value) |
|
CBOR_API CborError | cbor_encode_simple_value (CborEncoder *encoder, uint8_t value) |
|
CBOR_API CborError | cbor_encode_tag (CborEncoder *encoder, CborTag tag) |
|
CBOR_API CborError | cbor_encode_text_string (CborEncoder *encoder, const char *string, size_t length) |
|
static CborError | cbor_encode_text_stringz (CborEncoder *encoder, const char *string) |
|
CBOR_API CborError | cbor_encode_byte_string (CborEncoder *encoder, const uint8_t *string, size_t length) |
|
CBOR_API CborError | cbor_encode_floating_point (CborEncoder *encoder, CborType fpType, const void *value) |
|
static CborError | cbor_encode_boolean (CborEncoder *encoder, bool value) |
|
static CborError | cbor_encode_null (CborEncoder *encoder) |
|
static CborError | cbor_encode_undefined (CborEncoder *encoder) |
|
static CborError | cbor_encode_half_float (CborEncoder *encoder, const void *value) |
|
static CborError | cbor_encode_float (CborEncoder *encoder, float value) |
|
static CborError | cbor_encode_double (CborEncoder *encoder, double value) |
|
CBOR_API CborError | cbor_encoder_create_array (CborEncoder *encoder, CborEncoder *arrayEncoder, size_t length) |
|
CBOR_API CborError | cbor_encoder_create_map (CborEncoder *encoder, CborEncoder *mapEncoder, size_t length) |
|
CBOR_API CborError | cbor_encoder_close_container (CborEncoder *encoder, const CborEncoder *containerEncoder) |
|
CBOR_API CborError | cbor_encoder_close_container_checked (CborEncoder *encoder, const CborEncoder *containerEncoder) |
|
static uint8_t * | _cbor_encoder_get_buffer_pointer (const CborEncoder *encoder) |
|
static size_t | cbor_encoder_get_buffer_size (const CborEncoder *encoder, const uint8_t *buffer) |
|
static size_t | cbor_encoder_get_extra_bytes_needed (const CborEncoder *encoder) |
|
CBOR_API CborError | cbor_parser_init (const uint8_t *buffer, size_t size, uint32_t flags, CborParser *parser, CborValue *it) |
|
CBOR_API CborError | cbor_value_validate_basic (const CborValue *it) |
|
static bool | cbor_value_at_end (const CborValue *it) |
|
static const uint8_t * | cbor_value_get_next_byte (const CborValue *it) |
|
CBOR_API CborError | cbor_value_advance_fixed (CborValue *it) |
|
CBOR_API CborError | cbor_value_advance (CborValue *it) |
|
static bool | cbor_value_is_container (const CborValue *it) |
|
CBOR_API CborError | cbor_value_enter_container (const CborValue *it, CborValue *recursed) |
|
CBOR_API CborError | cbor_value_leave_container (CborValue *it, const CborValue *recursed) |
|
uint64_t | _cbor_value_decode_int64_internal (const CborValue *value) |
|
static uint64_t | _cbor_value_extract_int64_helper (const CborValue *value) |
|
static bool | cbor_value_is_valid (const CborValue *value) |
|
static CborType | cbor_value_get_type (const CborValue *value) |
|
static bool | cbor_value_is_null (const CborValue *value) |
|
static bool | cbor_value_is_undefined (const CborValue *value) |
|
static bool | cbor_value_is_boolean (const CborValue *value) |
|
static CborError | cbor_value_get_boolean (const CborValue *value, bool *result) |
|
static bool | cbor_value_is_simple_type (const CborValue *value) |
|
static CborError | cbor_value_get_simple_type (const CborValue *value, uint8_t *result) |
|
static bool | cbor_value_is_integer (const CborValue *value) |
|
static bool | cbor_value_is_unsigned_integer (const CborValue *value) |
|
static bool | cbor_value_is_negative_integer (const CborValue *value) |
|
static CborError | cbor_value_get_raw_integer (const CborValue *value, uint64_t *result) |
|
static CborError | cbor_value_get_uint64 (const CborValue *value, uint64_t *result) |
|
static CborError | cbor_value_get_int64 (const CborValue *value, int64_t *result) |
|
static CborError | cbor_value_get_int (const CborValue *value, int *result) |
|
CBOR_API CborError | cbor_value_get_int64_checked (const CborValue *value, int64_t *result) |
|
CBOR_API CborError | cbor_value_get_int_checked (const CborValue *value, int *result) |
|
static bool | cbor_value_is_length_known (const CborValue *value) |
|
static bool | cbor_value_is_tag (const CborValue *value) |
|
static CborError | cbor_value_get_tag (const CborValue *value, CborTag *result) |
|
CBOR_API CborError | cbor_value_skip_tag (CborValue *it) |
|
static bool | cbor_value_is_byte_string (const CborValue *value) |
|
static bool | cbor_value_is_text_string (const CborValue *value) |
|
static CborError | cbor_value_get_string_length (const CborValue *value, size_t *length) |
|
CborError | _cbor_value_copy_string (const CborValue *value, void *buffer, size_t *buflen, CborValue *next) |
|
CborError | _cbor_value_dup_string (const CborValue *value, void **buffer, size_t *buflen, CborValue *next) |
|
CBOR_API CborError | cbor_value_calculate_string_length (const CborValue *value, size_t *length) |
|
static CborError | cbor_value_copy_text_string (const CborValue *value, char *buffer, size_t *buflen, CborValue *next) |
|
static CborError | cbor_value_copy_byte_string (const CborValue *value, uint8_t *buffer, size_t *buflen, CborValue *next) |
|
static CborError | cbor_value_dup_text_string (const CborValue *value, char **buffer, size_t *buflen, CborValue *next) |
|
static CborError | cbor_value_dup_byte_string (const CborValue *value, uint8_t **buffer, size_t *buflen, CborValue *next) |
|
CBOR_API CborError | cbor_value_text_string_equals (const CborValue *value, const char *string, bool *result) |
|
static bool | cbor_value_is_array (const CborValue *value) |
|
static bool | cbor_value_is_map (const CborValue *value) |
|
static CborError | cbor_value_get_array_length (const CborValue *value, size_t *length) |
|
static CborError | cbor_value_get_map_length (const CborValue *value, size_t *length) |
|
CBOR_API CborError | cbor_value_map_find_value (const CborValue *map, const char *string, CborValue *element) |
|
static bool | cbor_value_is_half_float (const CborValue *value) |
|
CBOR_API CborError | cbor_value_get_half_float (const CborValue *value, void *result) |
|
static bool | cbor_value_is_float (const CborValue *value) |
|
static CborError | cbor_value_get_float (const CborValue *value, float *result) |
|
static bool | cbor_value_is_double (const CborValue *value) |
|
static CborError | cbor_value_get_double (const CborValue *value, double *result) |
|
CBOR_API CborError | cbor_value_validate (const CborValue *it, uint32_t flags) |
|
CBOR_API CborError | cbor_value_to_pretty_stream (CborStreamFunction streamFunction, void *token, CborValue *value, int flags) |
|
CBOR_API CborError | cbor_value_to_pretty_advance_flags (FILE *out, CborValue *value, int flags) |
|
CBOR_API CborError | cbor_value_to_pretty_advance (FILE *out, CborValue *value) |
|
static CborError | cbor_value_to_pretty (FILE *out, const CborValue *value) |
|
|
enum | CborType {
CborIntegerType = 0x00,
CborByteStringType = 0x40,
CborTextStringType = 0x60,
CborArrayType = 0x80,
CborMapType = 0xa0,
CborTagType = 0xc0,
CborSimpleType = 0xe0,
CborBooleanType = 0xf5,
CborNullType = 0xf6,
CborUndefinedType = 0xf7,
CborHalfFloatType = 0xf9,
CborFloatType = 0xfa,
CborDoubleType = 0xfb,
CborInvalidType = 0xff
} |
|
enum | CborKnownTags {
CborDateTimeStringTag = 0,
CborUnixTime_tTag = 1,
CborPositiveBignumTag = 2,
CborNegativeBignumTag = 3,
CborDecimalTag = 4,
CborBigfloatTag = 5,
CborCOSE_Encrypt0Tag = 16,
CborCOSE_Mac0Tag = 17,
CborCOSE_Sign1Tag = 18,
CborExpectedBase64urlTag = 21,
CborExpectedBase64Tag = 22,
CborExpectedBase16Tag = 23,
CborEncodedCborTag = 24,
CborUrlTag = 32,
CborBase64urlTag = 33,
CborBase64Tag = 34,
CborRegularExpressionTag = 35,
CborMimeMessageTag = 36,
CborCOSE_EncryptTag = 96,
CborCOSE_MacTag = 97,
CborCOSE_SignTag = 98,
CborSignatureTag = 55799
} |
|
enum | CborError {
CborNoError = 0,
CborUnknownError,
CborErrorUnknownLength,
CborErrorAdvancePastEOF,
CborErrorIO,
CborErrorGarbageAtEnd = 256,
CborErrorUnexpectedEOF,
CborErrorUnexpectedBreak,
CborErrorUnknownType,
CborErrorIllegalType,
CborErrorIllegalNumber,
CborErrorIllegalSimpleType,
CborErrorUnknownSimpleType = 512,
CborErrorUnknownTag,
CborErrorInappropriateTagForType,
CborErrorDuplicateObjectKeys,
CborErrorInvalidUtf8TextString,
CborErrorExcludedType,
CborErrorExcludedValue,
CborErrorImproperValue,
CborErrorOverlongEncoding,
CborErrorMapKeyNotString,
CborErrorMapNotSorted,
CborErrorMapKeysNotUnique,
CborErrorTooManyItems = 768,
CborErrorTooFewItems,
CborErrorDataTooLarge = 1024,
CborErrorNestingTooDeep,
CborErrorUnsupportedType,
CborErrorJsonObjectKeyIsAggregate = 1280,
CborErrorJsonObjectKeyNotString,
CborErrorJsonNotImplemented,
CborErrorOutOfMemory = (int) (~0U / 2 + 1),
CborErrorInternalError = (int) (~0U / 2)
} |
|
enum | CborParserIteratorFlags {
CborIteratorFlag_IntegerValueTooLarge = 0x01,
CborIteratorFlag_NegativeInteger = 0x02,
CborIteratorFlag_IteratingStringChunks = 0x02,
CborIteratorFlag_UnknownLength = 0x04,
CborIteratorFlag_ContainerIsMap = 0x20
} |
|
enum | CborValidationFlags {
CborValidateShortestIntegrals = 0x0001,
CborValidateShortestFloatingPoint = 0x0002,
CborValidateShortestNumbers = CborValidateShortestIntegrals | CborValidateShortestFloatingPoint,
CborValidateNoIndeterminateLength = 0x0100,
CborValidateMapIsSorted = 0x0200 | CborValidateNoIndeterminateLength,
CborValidateCanonicalFormat = 0x0fff,
CborValidateMapKeysAreUnique = 0x1000 | CborValidateMapIsSorted,
CborValidateTagUse = 0x2000,
CborValidateUtf8 = 0x4000,
CborValidateStrictMode = 0xfff00,
CborValidateMapKeysAreString = 0x100000,
CborValidateNoUndefined = 0x200000,
CborValidateNoTags = 0x400000,
CborValidateFiniteFloatingPoint = 0x800000,
CborValidateNoUnknownSimpleTypesSA = 0x4000000,
CborValidateNoUnknownSimpleTypes = 0x8000000 | CborValidateNoUnknownSimpleTypesSA,
CborValidateNoUnknownTagsSA = 0x10000000,
CborValidateNoUnknownTagsSR = 0x20000000 | CborValidateNoUnknownTagsSA,
CborValidateNoUnknownTags = 0x40000000 | CborValidateNoUnknownTagsSR,
CborValidateCompleteData = (int)0x80000000,
CborValidateStrictest = (int)~0U,
CborValidateBasic = 0
} |
|
enum | CborPrettyFlags {
CborPrettyNumericEncodingIndicators = 0x01,
CborPrettyTextualEncodingIndicators = 0,
CborPrettyIndicateIndeterminateLength = 0x02,
CborPrettyIndicateIndetermineLength = CborPrettyIndicateIndeterminateLength,
CborPrettyIndicateOverlongNumbers = 0x04,
CborPrettyShowStringFragments = 0x100,
CborPrettyMergeStringFragments = 0,
CborPrettyDefaultFlags = CborPrettyIndicateIndeterminateLength
} |
|