summaryrefslogtreecommitdiff
path: root/src/common/bits.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-11-03 14:00:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-11-03 14:00:29 (GMT)
commit54d05927811a59db294af8a24258c0b837360492 (patch)
tree527064eea471829b12f3b0f5a5b2278cbe4524c2 /src/common/bits.h
parentc24b37fd74ae12a90669731f150ac99213fad5b6 (diff)
Load and store various values.
Diffstat (limited to 'src/common/bits.h')
-rw-r--r--src/common/bits.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/bits.h b/src/common/bits.h
index 3898c73..d9c83c8 100644
--- a/src/common/bits.h
+++ b/src/common/bits.h
@@ -29,6 +29,9 @@
#include <sys/types.h>
+#include "datatypes.h"
+
+
/* Champ de bits simple */
typedef struct _bitfield_t bitfield_t;
@@ -119,6 +122,12 @@ void output_bit_field(const bitfield_t *);
#endif
+/* Restaure un champ de bits depuis un flux ouvert. */
+bitfield_t *load_bit_field(int, const size_t *, const bool *, SourceEndian);
+
+/* Sauvegarde un champ de bits dans un flux ouvert. */
+bool store_bit_field(const bitfield_t *, int, bool, bool, SourceEndian);
+
#endif /* _COMMON_BITS_H */