summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
index 6774be2..4b05340 100644
--- a/include/util.h
+++ b/include/util.h
@@ -30,4 +30,9 @@ void *alloc_array(size_t item_size, size_t nmemb);
SQFS_INTERNAL sqfs_u32 xxh32(const void *input, const size_t len);
+/*
+ Returns true if the given region of memory is filled with zero-bytes only.
+ */
+SQFS_INTERNAL bool is_memory_zero(const void *blob, size_t size);
+
#endif /* SQFS_UTIL_H */