func charToByte(data *C.char, len C.size_t) []byte {
	var value []byte
	sH := (*reflect.SliceHeader)(unsafe.Pointer(&value))
	sH.Cap, sH.Len, sH.Data = int(len), int(len), uintptr(unsafe.Pointer(data))
	return value
}
charToByte converts a *C.char to a byte slice.
package gorocksdb
import "C"
import (
	"reflect"
	"unsafe"
)
func btoi(b bool) int {
	if b {
		return 1
	}
	return 0
}
func boolToChar(b bool) C.uchar {
	if b {
		return 1
	}
	return 0
}