示例#1
0
func next(cur *C.KCCUR) (key, value string) {
	pair := C.gokccurget(cur)
	key = C.GoStringN(pair.key.buf, C.int(pair.key.size))
	if pair.value.buf != nil {
		value = C.GoStringN(pair.value.buf, C.int(pair.value.size))
	}
	return
}
示例#2
0
func next(cur *C.KCCUR) (key, value string) {
	pair := C.gokccurget(cur)
	key = C.GoString(pair.key)
	if pair.value != nil {
		value = C.GoString(pair.value)
	}
	C.free_pair(pair)
	return
}