aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-04-15 10:52:11 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 15:33:54 -0500
commite9d1b73352e9254e0b46f7af31acc5411d500baf (patch)
tree6f309ae0ca354b0cacc9be8ee8048b4ddeb20e2a /src/system.h
parentcda46ec67d41fb120809d5d1d16c05eb1b3882da (diff)
downloadserd-e9d1b73352e9254e0b46f7af31acc5411d500baf.tar.gz
serd-e9d1b73352e9254e0b46f7af31acc5411d500baf.tar.bz2
serd-e9d1b73352e9254e0b46f7af31acc5411d500baf.zip
Align node allocations
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index fdfab4a4..fae1cb84 100644
--- a/src/system.h
+++ b/src/system.h
@@ -29,6 +29,11 @@ serd_fopen(const char* path, const char* mode);
SERD_MALLOC_FUNC void*
serd_malloc_aligned(size_t alignment, size_t size);
+/// Allocate a zeroed buffer aligned to `alignment` bytes
+SERD_MALLOC_FUNC
+void*
+serd_calloc_aligned(size_t alignment, size_t size);
+
/// Allocate an aligned buffer for I/O
SERD_MALLOC_FUNC void*
serd_allocate_buffer(size_t size);