diff options
Diffstat (limited to 'src/common/endianness.c')
-rwxr-xr-x | src/common/endianness.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/common/endianness.c b/src/common/endianness.c index 072b767..46a3be2 100755 --- a/src/common/endianness.c +++ b/src/common/endianness.c @@ -139,8 +139,9 @@ bool read_u16(uint16_t *target, const bin_t *data, off_t *pos, off_t len, Source break; - - + case SRE_MIDDLE: + /* TODO */ + break; case SRE_BIG: @@ -213,6 +214,10 @@ bool read_u32(uint32_t *target, const bin_t *data, off_t *pos, off_t len, Source break; + case SRE_MIDDLE: + /* TODO */ + break; + case SRE_BIG: #if __BYTE_ORDER == __LITTLE_ENDIAN @@ -290,6 +295,10 @@ bool read_u64(uint64_t *target, const bin_t *data, off_t *pos, off_t len, Source break; + case SRE_MIDDLE: + /* TODO */ + break; + case SRE_BIG: #if __BYTE_ORDER == __LITTLE_ENDIAN @@ -324,11 +333,6 @@ bool read_u64(uint64_t *target, const bin_t *data, off_t *pos, off_t len, Source } - - - - - /****************************************************************************** * * * Paramètres : value = source de la valeur à transcrire. * @@ -406,12 +410,6 @@ bool _write_un(const bin_t *value, size_t size, bin_t *data, off_t *pos, off_t l } - - - - - - /****************************************************************************** * * * Paramètres : target = lieu d'enregistrement de la lecture. [OUT] * @@ -461,7 +459,6 @@ bool strtou8(uint8_t *target, const char *data, size_t *pos, size_t len, SourceE } - /****************************************************************************** * * * Paramètres : n = nombre d'octets constituant le nombre à lire. * @@ -551,7 +548,6 @@ bool _strtoun(uint8_t n, const char *data, size_t *pos, size_t len, SourceEndian break; default: - printf(" string :: '%s'\n", &data[*pos + j]); result = false; break; @@ -579,6 +575,10 @@ bool _strtoun(uint8_t n, const char *data, size_t *pos, size_t len, SourceEndian break; + case SRE_MIDDLE: + /* TODO */ + break; + case SRE_BIG: #if __BYTE_ORDER == __LITTLE_ENDIAN |