Cython extension class to allocate memory. Source repository for https://pypi.org/project/memory-allocator/
An extension class to allocate memory easily with cython.
This extension class started as part of the Sage software.
It provides a single extension class MemoryAllocator with cdef methods
malloc,calloc,allocarray,realloc,reallocarray,aligned_malloc,aligned_calloc,aligned_allocarray.Memory is freed when the instance of MemoryAllocator is deallocated.
On failure to allocate the memory, a proper error is raised.
noexcept clauses for Cython 3We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.