func (j *Judy1) Test(index uint64) (exists bool) { st := C.Judy1Test(C.Pcvoid_t(j.val), C.Word_t(index), nil) if st != 0 { exists = true } return }
// Test if index's bit is set in the Judy1 array. // Return true if index's bit is set (index is present), false if it is unset (index is absent). func (j *Judy1) Test(index uint64) bool { return C.Judy1Test(C.Pcvoid_t(j.array), C.Word_t(index), nil) != 0 }