func WriteBatchFrom(data []byte) *WriteBatch {
	return NewNativeWriteBatch(C.rocksdb_writebatch_create_from(byteToChar(data), C.size_t(len(data))))
}
WriteBatchFrom creates a write batch from a serialized WriteBatch.
package gorocksdb
import "C"
import (
	"errors"
	"io"
)
type WriteBatch struct {
	c *C.rocksdb_writebatch_t
}
func NewWriteBatch() *WriteBatch {
	return NewNativeWriteBatch(C.rocksdb_writebatch_create())
}
func NewNativeWriteBatch(c *C.rocksdb_writebatch_t) *WriteBatch {
	return &WriteBatch{c}
}