65 T* ptr =
static_cast<T*
>(::operator
new(size *
sizeof(T)));
87 ::operator
delete(object);
110 for (
size_t i = 0;
i <
size; ++
i)
138 for (
size_t i = 0;
i <
num; ++
i)
void ldvc_free(T *object)
Deallocates memory previously allocated by ldvc_malloc or similar functions.
T * ldvc_realloc(T *ptr, usize size)
Reallocates memory for an array of elements.
T * ldvc_calloc(usize num)
Allocates and initializes memory for an array of elements.
T * ldvc_malloc(usize size)
Allocates memory for an array of elements.
std::mutex ldvc_mem_mutx
Mutex for thread-safe memory management.
Defines common types used throughout the library.
size_t usize
Unsigned size type.