spaCy/spacy/memory.pxd
2014-09-17 20:02:06 +02:00

12 lines
260 B
Cython

from libcpp.vector cimport vector
cdef class Pool:
cdef vector[void*] _addresses
cdef void* alloc(self, size_t number, size_t size) except NULL
cdef void* realloc(self, void* addr, size_t n) except NULL
cdef class Address:
cdef size_t addr