func (iter *WALIterator) Close() {
	C.rocksdb_wal_iter_destroy(iter.c)
	iter.c = nil
}
Close closes the iterator.
package rocksdb
import "C"
import (
	"errors"
	"unsafe"
)
type WALIterator struct {
	c *C.rocksdb_wal_iterator_t
}
func NewNativeWALIterator(c unsafe.Pointer) *WALIterator {
	return &WALIterator{c: (*C.rocksdb_wal_iterator_t)(c)}
}
func (iter *WALIterator) Valid() bool {
	return C.rocksdb_wal_iter_valid(iter.c) != 0
}
func (iter *WALIterator) Next() {
	C.rocksdb_wal_iter_next(iter.c)
}
func (iter *WALIterator) Status() error {
	var cErr *C.char
	C.rocksdb_wal_iter_status(iter.c, &cErr)
	if cErr != nil {
		return errors.New(C.GoString(cErr))
	}
	return nil
}
func (iter *WALIterator) GetBatch() (*WriteBatch, uint64) {
	var cSeqNum C.uint64_t
	cBatch := C.rocksdb_wal_iter_get_batch(iter.c, &cSeqNum)
	return NewNativeWriteBatch(cBatch), uint64(cSeqNum)
}