Exemple #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))
}
Exemple #2
0
func (r *rocksDBBatch) Repr() []byte {
	return cSliceToGoBytes(C.DBBatchRepr(r.batch))
}
Exemple #3
0
func (r *rocksDBBatch) Repr() []byte {
	r.flushMutations()
	return cSliceToGoBytes(C.DBBatchRepr(r.batch))
}