diff options
Diffstat (limited to 'src/common/endianness.h')
-rwxr-xr-x | src/common/endianness.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/common/endianness.h b/src/common/endianness.h index 2764f66..07c1b76 100755 --- a/src/common/endianness.h +++ b/src/common/endianness.h @@ -29,6 +29,7 @@ #include "../arch/archbase.h" +#include "../arch/vmpa.h" @@ -43,19 +44,19 @@ typedef enum _SourceEndian /* Lit un nombre non signé sur 4 bits. */ -bool read_u4(uint8_t *, const bin_t *, off_t *, off_t, bool *); +bool read_u4(uint8_t *, const bin_t *, phys_t *, phys_t, bool *); /* Lit un nombre non signé sur un octet. */ -bool read_u8(uint8_t *, const bin_t *, off_t *, off_t); +bool read_u8(uint8_t *, const bin_t *, phys_t *, phys_t); /* Lit un nombre non signé sur deux octets. */ -bool read_u16(uint16_t *, const bin_t *, off_t *, off_t, SourceEndian); +bool read_u16(uint16_t *, const bin_t *, phys_t *, phys_t, SourceEndian); /* Lit un nombre non signé sur quatre octets. */ -bool read_u32(uint32_t *, const bin_t *, off_t *, off_t, SourceEndian); +bool read_u32(uint32_t *, const bin_t *, phys_t *, phys_t, SourceEndian); /* Lit un nombre non signé sur huit octets. */ -bool read_u64(uint64_t *, const bin_t *, off_t *, off_t, SourceEndian); +bool read_u64(uint64_t *, const bin_t *, phys_t *, phys_t, SourceEndian); #define read_s4(target, data, pos, len, low) read_u4((uint8_t *)target, data, pos, len, low) |