Use throughout dplug:dsp to avoid reliance on GC. Important: Size 0 is special-case to free the slice. This works a bit like alignedRealloc except with slices as input. You MUST use consistent alignement thoughout the lifetime of this buffer.
Existing allocated buffer. Can be null. Input slice length is not considered.
Desired slice length.
Alignement if the slice has allocation requirements, 1 else. Must match for deallocation.
See Implementation
Use throughout dplug:dsp to avoid reliance on GC. Important: Size 0 is special-case to free the slice. This works a bit like alignedRealloc except with slices as input. You MUST use consistent alignement thoughout the lifetime of this buffer.