dplug.core.alignedbuffer

Members

Functions

alignedFree
void alignedFree(void* aligned, size_t alignment)

Frees aligned memory allocated by alignedMalloc or alignedRealloc. Functionally equivalent to Visual C++ _aligned_free. Do not mix allocations with different alignment.

alignedMalloc
void* alignedMalloc(size_t size, size_t alignment)

Allocates an aligned memory chunk. Functionally equivalent to Visual C++ _aligned_malloc. Do not mix allocations with different alignment.

alignedRealloc
void* alignedRealloc(void* aligned, size_t size, size_t alignment)

Reallocates an aligned memory chunk allocated by alignedMalloc or alignedRealloc. Functionally equivalent to Visual C++ _aligned_realloc. Do not mix allocations with different alignment.

makeAlignedBuffer
AlignedBuffer!T makeAlignedBuffer(size_t initialSize, int alignment)
reallocBuffer
void reallocBuffer(T[] buffer, size_t length, int alignment)

Use throughout dplug:dsp to avoid reliance on GC. This works like alignedRealloc except with slices as input. You MUST use consistent alignement thoughout the lifetime of this buffer.

Structs

AlignedBuffer
struct AlignedBuffer(T)

Growable array, points to a memory aligned location. This can also work as an output range.

Meta

Authors

Guillaume Piolat