| 60 | } |
| 61 | |
| 62 | Slice 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 | |
| 72 | void BlockBuilder::Add(const Slice& key, const Slice& value) { |
| 73 | Slice last_key_piece(last_key_); |
nothing calls this directly
no test coverage detected