Exemplo n.º 1
0
func (r *rocksDBBatch) Repr() []byte {
	if r.flushes == 0 {
		// We've never flushed to C++. Return the mutations only.
		return r.builder.getRepr()
	}
	r.flushMutations()
	return cSliceToGoBytes(C.DBBatchRepr(r.batch))
}
Exemplo n.º 2
0
func (r *rocksDBBatch) Repr() []byte {
	return cSliceToGoBytes(C.DBBatchRepr(r.batch))
}
Exemplo n.º 3
0
func (r *rocksDBBatch) Repr() []byte {
	r.flushMutations()
	return cSliceToGoBytes(C.DBBatchRepr(r.batch))
}