We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1552d4f + 41d2996 commit 525faa1Copy full SHA for 525faa1
libmimalloc-sys/src/extended.rs
@@ -104,6 +104,12 @@ extern "C" {
104
/// This is a [`mi_zalloc`](crate::mi_zalloc) equivalent of [`mi_malloc_aligned_at`].
105
pub fn mi_zalloc_aligned_at(size: usize, alignment: usize, offset: usize) -> *mut c_void;
106
107
+ /// Allocate `size` of bytes aligned by `alignment` and place the address of the
108
+ /// allocated memory to `ptr`.
109
+ ///
110
+ /// Returns zero on success, invalid argument for invalid alignment, or out-of-memory.
111
+ pub fn mi_posix_memalign(ptr: *mut *mut c_void, alignment: usize, size: usize) -> c_int;
112
+
113
/// Allocate `size * count` bytes aligned by `alignment` at a specified
114
/// `offset`, zero-initialized.
115
///
0 commit comments