示例#1
0
文件: judy1.go 项目: bickfordb/judy
func (j *Judy1) Free() {
	C.Judy1FreeArray(&j.val, nil)
}
示例#2
0
文件: judy1.go 项目: riobard/go-judy
// Free the entire Judy1 array.
// Return the number of bytes freed.
//
// NOTE: The Judy array allocates memory directly from the operating system and is NOT garbage collected by the
// Go runtime. It is very important that you call Free() on a Judy array after using it to prevent memory leaks.
func (j *Judy1) Free() uint64 {
	return uint64(C.Judy1FreeArray(C.PPvoid_t(&j.array), nil))
}