diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2025-03-12 23:53:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2025-03-12 23:53:52 (GMT) |
commit | ccb49530f930701b1ca57e560564ae098dcef3c9 (patch) | |
tree | dc4abbca57f6838ac764b545181d01a66e6521f4 /src/common/leb128.h | |
parent | 04d5af777d42d02d0ec580373f7a50be1bfb3dac (diff) |
Update and improve the operations with LEB128 values.
Diffstat (limited to 'src/common/leb128.h')
-rw-r--r-- | src/common/leb128.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/common/leb128.h b/src/common/leb128.h index 0313f5c..cb712a3 100644 --- a/src/common/leb128.h +++ b/src/common/leb128.h @@ -30,7 +30,6 @@ #include "datatypes.h" -#include "packed.h" @@ -65,16 +64,16 @@ bool load_uleb128(uleb128_t *, int); bool store_uleb128(const uleb128_t *, int); /* Encode un nombre non signé encodé au format LEB128. */ -bool pack_uleb128(const uleb128_t *, packed_buffer_t *); +void *pack_uleb128(const uleb128_t *, size_t *); /* Encode un nombre signé encodé au format LEB128. */ -bool pack_leb128(const leb128_t *, packed_buffer_t *); +void *pack_leb128(const leb128_t *, size_t *); -/* Décode un nombre non signé encodé au format LEB128. */ -bool unpack_uleb128(uleb128_t *, packed_buffer_t *); +/* Encode un nombre non signé encodé au format LEB128. */ +bool unpack_uleb128(uleb128_t *, const void **, const void *); /* Décode un nombre signé encodé au format LEB128. */ -bool unpack_leb128(leb128_t *, packed_buffer_t *); +bool unpack_leb128(leb128_t *, const void **, const void *); |