File: bloom.pxd

package info (click to toggle)
python-preshed 4.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: python: 367; ansic: 160; sh: 13; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from libc.stdint cimport uint64_t, uint32_t
from libcpp.memory cimport make_unique, unique_ptr
from libcpp.vector cimport vector

ctypedef uint64_t key_t

cdef struct BloomStruct


cdef class BloomFilter:
    cdef unique_ptr[BloomStruct] c_bloom
    cdef inline bint contains(self, key_t item) nogil