mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-14 03:26:24 +03:00
19 lines
350 B
Cython
19 lines
350 B
Cython
ctypedef key_t size_t
|
|
ctypedef val_t size_t
|
|
|
|
|
|
cdef struct Cell:
|
|
key_t key
|
|
val_t value
|
|
|
|
|
|
cdef class PointerHash:
|
|
cdef size_t size
|
|
cdef size_t filled
|
|
cdef Cell* cells
|
|
|
|
cdef size_t find_slot(self, key_t key)
|
|
cdef Cell* lookup(self, key_t key)
|
|
cdef void insert(self, key_t key)
|
|
cdef void resize(self, size_t new_size)
|