carb::deallocate

Defined in carb/Memory.h

inline void carb::deallocate(void *p) noexcept

Deallocates a block of memory previously allocated with allocate().

Note

Any plugin (or the executable) may allocate the memory and a different plugin (or the executable) may deallocate or reallocate it.

Note

If carb.dll/libcarb.so is not loaded, this function will silently do nothing. Since allocate would have returned nullptr in this case, this function should never be called.

Parameters

p – The block of memory previously returned from allocate() or reallocate(), or nullptr.