MCPcopy Create free account
hub / github.com/ElementsProject/elements / Finish

Method Finish

src/leveldb/table/block_builder.cc:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62Slice BlockBuilder::Finish() {
63 // Append restart array
64 for (size_t i = 0; i < restarts_.size(); i++) {
65 PutFixed32(&buffer_, restarts_[i]);
66 }
67 PutFixed32(&buffer_, restarts_.size());
68 finished_ = true;
69 return Slice(buffer_);
70}
71
72void BlockBuilder::Add(const Slice& key, const Slice& value) {
73 Slice last_key_piece(last_key_);

Callers

nothing calls this directly

Calls 3

PutFixed32Function · 0.85
SliceClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected