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