]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/table/block_based/block_builder.h
import quincy beta 17.1.0
[ceph.git] / ceph / src / rocksdb / table / block_based / block_builder.h
index 42c996e5b9802581095b88fd62c509f1eb484d5f..e3fcfc2ecc2a3e86b532b59e5cd0557cb4d69096 100644 (file)
@@ -32,6 +32,9 @@ class BlockBuilder {
   // Reset the contents as if the BlockBuilder was just constructed.
   void Reset();
 
+  // Swap the contents in BlockBuilder with buffer, then reset the BlockBuilder.
+  void SwapAndReset(std::string& buffer);
+
   // REQUIRES: Finish() has not been called since the last call to Reset().
   // REQUIRES: key is larger than any previously added key
   void Add(const Slice& key, const Slice& value,