Exemplo n.º 1
0
func (t *HashTree) Len() int {
	c_key := C.CString("@")
	defer C.free(unsafe.Pointer(c_key))
	var cnt _Ctype_int
	C.ht_get_hash(t.tree, c_key, &cnt)
	return int(cnt)
}
Exemplo n.º 2
0
func (t *HashTree) Hash() uint16 {
	c_key := C.CString("@")
	defer C.free(unsafe.Pointer(c_key))
	return uint16(C.ht_get_hash(t.tree, c_key, (*_Ctype_int)(nil)))
}