summaryrefslogtreecommitdiff
path: root/src/common/endianness.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/endianness.h')
-rwxr-xr-xsrc/common/endianness.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/common/endianness.h b/src/common/endianness.h
index a6bf582..c39d702 100755
--- a/src/common/endianness.h
+++ b/src/common/endianness.h
@@ -36,8 +36,8 @@
typedef enum _SourceEndian
{
SRE_LITTLE, /* Petits boutistes */
- SRE_BIG, /* Gros boutistes */
- SRE_MIDDLE /* Moyens boutistes */
+ SRE_MIDDLE, /* Moyens boutistes */
+ SRE_BIG /* Gros boutistes */
} SourceEndian;
@@ -65,7 +65,6 @@ bool read_u64(uint64_t *, const bin_t *, off_t *, off_t, SourceEndian);
#define read_s64(target, data, pos, len, endian) read_u64((uint64_t *)target, data, pos, len, endian)
-
/* Ecrit un nombre non signé sur n octets. */
bool _write_un(const bin_t *, size_t, bin_t *, off_t *, off_t, SourceEndian);
@@ -89,14 +88,9 @@ bool _write_un(const bin_t *, size_t, bin_t *, off_t *, off_t, SourceEndian);
#define write_s64(value, data, pos, len, endian) write_un(value, data, pos, len, endian, sint64_t)
-
-
-
/* Lit un nombre hexadécimal non signé sur deux octets. */
bool strtou8(uint8_t *, const char *, size_t *, size_t, SourceEndian);
-
-
/* Lit un nombre hexadécimal non signé sur n octets. */
bool _strtoun(uint8_t, const char *, size_t *, size_t, SourceEndian, ...);