Table of Contents

Method b3SetAllocator

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3SetAllocator(delegate* unmanaged[Cdecl]<int, int, void*>, delegate* unmanaged[Cdecl]<void*, void>)

Overrides the allocation functions. Must be called during application startup.

public static extern void b3SetAllocator(delegate* unmanaged[Cdecl]<int, int, void*> allocFcn, delegate* unmanaged[Cdecl]<void*, void> freeFcn)

Parameters

allocFcn delegate* unmanaged[Cdecl]<int, int, void*>

The allocation callback, with signature void* (int size, int alignment). The alignment is guaranteed to be a power of two.

freeFcn delegate* unmanaged[Cdecl]<void*, void>

The deallocation callback, with signature void (void* mem).