Exemplo n.º 1
0
func (r *rocksDBIterator) destroy() {
	C.DBIterDestroy(r.iter)
	*r = rocksDBIterator{}
}
Exemplo n.º 2
0
// The following methods implement the Iterator interface.
func (r *rocksDBIterator) Close() {
	C.DBIterDestroy(r.iter)
}
Exemplo n.º 3
0
// The following methods implement the Iterator interface.
func (r *rocksDBIterator) Close() {
	C.DBIterDestroy(r.iter)
	*r = rocksDBIterator{}
	iterPool.Put(r)
}