ma_aligned_malloc function

  1. @Native<Pointer<Void> Function(Size, Size, Pointer<ma_allocation_callbacks>)>(ffi.Size, ffi.Size, ffi.Pointer<ma_allocation_callbacks>)>()
Pointer<Void> ma_aligned_malloc(
  1. int sz,
  2. int alignment,
  3. Pointer<ma_allocation_callbacks> pAllocationCallbacks
)

Performs an aligned malloc, with the assumption that the alignment is a power of 2.

Implementation

@ffi.Native<
  ffi.Pointer<ffi.Void> Function(
    ffi.Size,
    ffi.Size,
    ffi.Pointer<ma_allocation_callbacks>,
  )
>()
external ffi.Pointer<ffi.Void> ma_aligned_malloc(
  int sz,
  int alignment,
  ffi.Pointer<ma_allocation_callbacks> pAllocationCallbacks,
);