|
@ -150,7 +150,11 @@ class InternalKey { |
|
|
AppendInternalKey(&rep_, ParsedInternalKey(user_key, s, t)); |
|
|
AppendInternalKey(&rep_, ParsedInternalKey(user_key, s, t)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } |
|
|
|
|
|
|
|
|
bool DecodeFrom(const Slice& s) { |
|
|
|
|
|
rep_.assign(s.data(), s.size()); |
|
|
|
|
|
return !rep_.empty(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Slice Encode() const { |
|
|
Slice Encode() const { |
|
|
assert(!rep_.empty()); |
|
|
assert(!rep_.empty()); |
|
|
return rep_; |
|
|
return rep_; |
|
|