예제 #1
0
파일: judy1.go 프로젝트: bickfordb/judy
func (j *Judy1) Set(bit uint64) {
	C.Judy1Set(C.PPvoid_t(&j.val), C.Word_t(bit), nil)
}
예제 #2
0
파일: judy1.go 프로젝트: riobard/go-judy
// 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
}