We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb31d19 + 2cc36eb commit 23e35d7Copy full SHA for 23e35d7
include/leveldb/slice.h
@@ -51,6 +51,9 @@ class LEVELDB_EXPORT Slice {
51
// Return true iff the length of the referenced data is zero
52
bool empty() const { return size_ == 0; }
53
54
+ const char* begin() const { return data(); }
55
+ const char* end() const { return data() + size(); }
56
+
57
// Return the ith byte in the referenced data.
58
// REQUIRES: n < size()
59
char operator[](size_t n) const {
0 commit comments