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 e157459 + 9e6fb61 commit c16b563Copy full SHA for c16b563
libmimalloc-sys/src/extended.rs
@@ -110,6 +110,12 @@ extern "C" {
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` bytes aligned by `alignment` with alignment as the first
114
+ /// parameter.
115
+ ///
116
+ /// Return pointer to the allocated memory or null if out of memory.
117
+ pub fn mi_aligned_alloc(alignment: usize, size: usize) -> *mut c_void;
118
+
119
/// Allocate `size * count` bytes aligned by `alignment` at a specified
120
/// `offset`, zero-initialized.
121
///
0 commit comments