Example #1
0
func (j *Judy1) Set(bit uint64) {
	C.Judy1Set(C.PPvoid_t(&j.val), C.Word_t(bit), nil)
}
Example #2
0
// Set index's bit in the Judy1 array.
// Return true if index's bit was previously unset (successful), otherwise false if the bit was already set (unsuccessful).
func (j *Judy1) Set(index uint64) bool {
	return C.Judy1Set(C.PPvoid_t(&j.array), C.Word_t(index), nil) != 0
}