mirror of
https://github.com/google/leveldb.git
synced 2025-04-15 13:20:37 +08:00
Merge c627c9f379
into ac691084fd
This commit is contained in:
commit
c28ec9b2e9
@ -83,7 +83,7 @@ class LEVELDB_EXPORT Slice {
|
||||
// > 0 iff "*this" > "b"
|
||||
int compare(const Slice& b) const;
|
||||
|
||||
// Return true iff "x" is a prefix of "*this"
|
||||
// Return true if "x" is a prefix of "*this"
|
||||
bool starts_with(const Slice& x) const {
|
||||
return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user