summaryrefslogtreecommitdiff
path: root/malloc/block_allocator/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/block_allocator/utils.h')
-rw-r--r--malloc/block_allocator/utils.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/malloc/block_allocator/utils.h b/malloc/block_allocator/utils.h
new file mode 100644
index 0000000..7573945
--- /dev/null
+++ b/malloc/block_allocator/utils.h
@@ -0,0 +1,16 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+#include "allocator.h"
+
+/*
+ * Print datas the `meta` block contains.
+ */
+void read_data(struct blk_meta *meta);
+
+/*
+ * Write `data` in the `meta` block.
+ */
+void write_data(struct blk_meta *meta, char *data, size_t n);
+
+#endif /* !UTILS_H */