Encode a suitable internal key target for "target" and return it. Uses *scratch as scratch space, and the returned pointer will point into this scratch space.
| 37 | // Uses *scratch as scratch space, and the returned pointer will point |
| 38 | // into this scratch space. |
| 39 | static const char* EncodeKey(std::string* scratch, const Slice& target) { |
| 40 | scratch->clear(); |
| 41 | PutVarint32(scratch, target.size()); |
| 42 | scratch->append(target.data(), target.size()); |
| 43 | return scratch->data(); |
| 44 | } |
| 45 | |
| 46 | class MemTableIterator : public Iterator { |
| 47 | public: |
no test coverage detected