func (r *rocksDBIterator) destroy() { C.DBIterDestroy(r.iter) *r = rocksDBIterator{} }
// The following methods implement the Iterator interface. func (r *rocksDBIterator) Close() { C.DBIterDestroy(r.iter) }
// The following methods implement the Iterator interface. func (r *rocksDBIterator) Close() { C.DBIterDestroy(r.iter) *r = rocksDBIterator{} iterPool.Put(r) }