diff options
| author | rimio <vasi.vilvoiu@gmail.com> | 2018-03-01 21:24:07 +0200 |
|---|---|---|
| committer | rimio <vasi.vilvoiu@gmail.com> | 2018-03-01 21:24:07 +0200 |
| commit | dd2de65b85cdc7a7744145214ecf8ea5ebe46c25 (patch) | |
| tree | 1f6c4e1efae92285af903f59168571ec5ef98173 /src/ecbor_internal.h | |
| parent | df8d9c31e2191aeedd967560f222971d978a9a1c (diff) | |
Added endianness conversion; Added first 10 answer files; fixed test case; fixed small issue in describe tool
Diffstat (limited to 'src/ecbor_internal.h')
| -rw-r--r-- | src/ecbor_internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ecbor_internal.h b/src/ecbor_internal.h index f0ec24b..b783eb1 100644 --- a/src/ecbor_internal.h +++ b/src/ecbor_internal.h @@ -8,6 +8,8 @@ #ifndef _ECBOR_INTERNAL_H_ #define _ECBOR_INTERNAL_H_ +#include <stdint.h> + /* Don't rely on <stddef.h> for this */ #define NULL 0 #define false 0 @@ -23,4 +25,16 @@ enum { ECBOR_ADDITIONAL_INDEFINITE = 31 }; +/* + * Endianness + */ +extern uint16_t +ecbor_uint16_from_big_endian (uint16_t value); + +extern uint32_t +ecbor_uint32_from_big_endian (uint32_t value); + +extern uint64_t +ecbor_uint64_from_big_endian (uint64_t value); + #endif
\ No newline at end of file |
