示例#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
}