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.
- Modernize Python metadata, require Python >= 3.8. #9 by @mkoeppe
- Add missing
noexcept
clauses for Cython 3 #8 by @tornaria
- Python 3.11 compatible.
- Provide wheels build by github actions.
- Fixed doctests on 32bit systems.