/external/chromium_org/third_party/leveldatabase/src/table/ |
block_builder.cc | 63 Slice BlockBuilder::Finish() { 70 return Slice(buffer_); 73 void BlockBuilder::Add(const Slice& key, const Slice& value) { 74 Slice last_key_piece(last_key_); 105 assert(Slice(last_key_) == key);
|
iterator_wrapper.h | 38 Slice key() const { assert(Valid()); return key_; } 39 Slice value() const { assert(Valid()); return iter_->value(); } 44 void Seek(const Slice& k) { assert(iter_); iter_->Seek(k); Update(); } 58 Slice key_;
|
filter_block_test.cc | 23 virtual void CreateFilter(const Slice* keys, int n, std::string* dst) const { 30 virtual bool KeyMayMatch(const Slice& key, const Slice& filter) const { 48 Slice block = builder.Finish(); 65 Slice block = builder.Finish(); 96 Slice block = builder.Finish();
|
format.cc | 23 Status BlockHandle::DecodeFrom(Slice* input) { 44 Status Footer::DecodeFrom(Slice* input) { 61 *input = Slice(end, input->data() + input->size() - end); 70 result->data = Slice(); 78 Slice contents; 108 result->data = Slice(data, n); 112 result->data = Slice(buf, n); 132 result->data = Slice(ubuf, ulength);
|
format.h | 10 #include "leveldb/slice.h" 35 Status DecodeFrom(Slice* input); 64 Status DecodeFrom(Slice* input); 87 Slice data; // Actual contents of data
|
table.cc | 48 Slice footer_input; 106 if (iter->Valid() && iter->key() == Slice(key)) { 113 void Table::ReadFilter(const Slice& filter_handle_value) { 114 Slice v = filter_handle_value; 141 static void DeleteCachedBlock(const Slice& key, void* value) { 156 const Slice& index_value) { 163 Slice input = index_value; 174 Slice key(cache_key_buffer, sizeof(cache_key_buffer)); 216 Status Table::InternalGet(const ReadOptions& options, const Slice& k, 218 void (*saver)(void*, const Slice&, const Slice&)) [all...] |
/external/chromium_org/content/browser/indexed_db/leveldb/ |
leveldb_write_batch.cc | 8 #include "third_party/leveldatabase/src/include/leveldb/slice.h" 22 static leveldb::Slice MakeSlice(const base::StringPiece& s) { 23 return leveldb::Slice(s.begin(), s.size());
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
testutil.h | 9 #include "leveldb/slice.h" 15 // Store in *dst a random string of length "len" and return a Slice that 17 extern Slice RandomString(Random* rnd, int len, std::string* dst); 24 // "N*compressed_fraction" bytes and return a Slice that references 26 extern Slice CompressibleString(Random* rnd, double compressed_fraction,
|
logging.cc | 12 #include "leveldb/slice.h" 22 void AppendEscapedStringTo(std::string* str, const Slice& value) { 42 std::string EscapeString(const Slice& value) { 48 bool ConsumeChar(Slice* in, char c) { 57 bool ConsumeDecimalNumber(Slice* in, uint64_t* val) {
|
cache.cc | 27 void (*deleter)(const Slice&, void* value); 37 Slice key() const { 41 return *(reinterpret_cast<Slice*>(value)); 43 return Slice(key_data, key_length); 58 LRUHandle* Lookup(const Slice& key, uint32_t hash) { 78 LRUHandle* Remove(const Slice& key, uint32_t hash) { 98 LRUHandle** FindPointer(const Slice& key, uint32_t hash) { 144 Cache::Handle* Insert(const Slice& key, uint32_t hash, 146 void (*deleter)(const Slice& key, void* value)); 147 Cache::Handle* Lookup(const Slice& key, uint32_t hash) [all...] |
coding.h | 16 #include "leveldb/slice.h" 26 extern void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 28 // Standard Get... routines parse a value from the beginning of a Slice 29 // and advance the slice past the parsed value. 30 extern bool GetVarint32(Slice* input, uint32_t* value); 31 extern bool GetVarint64(Slice* input, uint64_t* value); 32 extern bool GetLengthPrefixedSlice(Slice* input, Slice* result);
|
bloom_test.cc | 16 static Slice Key(int i, char* buffer) { 18 return Slice(buffer, sizeof(uint32_t)); 39 void Add(const Slice& s) { 44 std::vector<Slice> key_slices; 46 key_slices.push_back(Slice(keys_[i])); 69 bool Matches(const Slice& s) {
|
bloom.cc | 7 #include "leveldb/slice.h" 13 static uint32_t BloomHash(const Slice& key) { 35 virtual void CreateFilter(const Slice* keys, int n, std::string* dst) const { 63 virtual bool KeyMayMatch(const Slice& key, const Slice& bloom_filter) const {
|
env.cc | 36 static Status DoWriteStringToFile(Env* env, const Slice& data, 58 Status WriteStringToFile(Env* env, const Slice& data, 63 Status WriteStringToFileSync(Env* env, const Slice& data, 78 Slice fragment;
|
comparator.cc | 8 #include "leveldb/slice.h" 25 virtual int Compare(const Slice& a, const Slice& b) const { 31 const Slice& limit) const {
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
db_impl.h | 32 virtual Status Put(const WriteOptions&, const Slice& key, const Slice& value); 33 virtual Status Delete(const WriteOptions&, const Slice& key); 36 const Slice& key, 41 virtual bool GetProperty(const Slice& property, std::string* value); 43 virtual void CompactRange(const Slice* begin, const Slice* end); 48 void TEST_CompactRange(int level, const Slice* begin, const Slice* end); 65 void RecordReadSample(Slice key) [all...] |
write_batch.cc | 43 Slice input(rep_); 49 Slice key, value; 98 void WriteBatch::Put(const Slice& key, const Slice& value) { 105 void WriteBatch::Delete(const Slice& key) { 117 virtual void Put(const Slice& key, const Slice& value) { 121 virtual void Delete(const Slice& key) { 122 mem_->Add(sequence_, kTypeDeletion, key, Slice()); 136 void WriteBatchInternal::SetContents(WriteBatch* b, const Slice& contents) [all...] |
filename.cc | 15 extern Status WriteStringToFileSync(Env* env, const Slice& data, 83 Slice rest(fname); 111 Slice suffix = rest; 112 if (suffix == Slice(".log")) { 114 } else if (suffix == Slice(".sst") || suffix == Slice(".ldb")) { 116 } else if (suffix == Slice(".dbtmp")) { 130 Slice contents = manifest;
|
memtable.h | 57 const Slice& key, 58 const Slice& value);
|
log_writer.h | 10 #include "leveldb/slice.h" 27 Status AddRecord(const Slice& slice);
|
version_set.h | 44 const Slice& key); 56 const Slice* smallest_user_key, 57 const Slice* largest_user_key); 85 bool RecordReadSample(Slice key); 103 const Slice* smallest_user_key, 104 const Slice* largest_user_key); 108 int PickLevelForMemTableOutput(const Slice& smallest_user_key, 109 const Slice& largest_user_key); 128 void ForEachOverlapping(Slice user_key, Slice internal_key [all...] |
c.cc | 37 using leveldb::Slice; 73 virtual int Compare(const Slice& a, const Slice& b) const { 82 virtual void FindShortestSeparator(std::string*, const Slice&) const { } 108 virtual void CreateFilter(const Slice* keys, int n, std::string* dst) const { 121 virtual bool KeyMayMatch(const Slice& key, const Slice& filter) const { 177 db->rep->Put(options->rep, Slice(key, keylen), Slice(val, vallen))); 185 SaveError(errptr, db->rep->Delete(options->rep, Slice(key, keylen))) [all...] |
db_bench.cc | 131 Slice Generate(size_t len) { 137 return Slice(data_.data() + pos_ - len, len); 141 static Slice TrimSpace(Slice s) { 150 return Slice(s.data() + start, limit - start); 153 static void AppendWithSpace(std::string* str, Slice msg) { 205 void AddMessage(Slice msg) { 239 void Report(const Slice& name) { 372 Slice key = TrimSpace(Slice(line, sep - 1 - line)) [all...] |
/external/chromium_org/third_party/leveldatabase/src/doc/bench/ |
db_bench_tree_db.cc | 108 Slice Generate(int len) { 114 return Slice(data_.data() + pos_ - len, len); 118 static Slice TrimSpace(Slice s) { 127 return Slice(s.data() + start, limit - start); 200 Slice key = TrimSpace(Slice(line, sep - 1 - line)); 201 Slice val = TrimSpace(Slice(sep + 1)); 252 void Stop(const Slice& name) [all...] |
db_bench_sqlite3.cc | 139 Slice Generate(int len) { 145 return Slice(data_.data() + pos_ - len, len); 149 static Slice TrimSpace(Slice s) { 158 return Slice(s.data() + start, limit - start); 224 Slice key = TrimSpace(Slice(line, sep - 1 - line)); 225 Slice val = TrimSpace(Slice(sep + 1)); 276 void Stop(const Slice& name) [all...] |