Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 48) sorted by relevance

12

/leveldb-1.20/util/
H A Dcoding.cc11 memcpy(buf, &value, sizeof(value)); in EncodeFixed32()
13 buf[0] = value & 0xff; in EncodeFixed32()
22 memcpy(buf, &value, sizeof(value)); in EncodeFixed64()
24 buf[0] = value & 0xff; in EncodeFixed64()
36 char buf[sizeof(value)]; in PutFixed32()
37 EncodeFixed32(buf, value); in PutFixed32()
42 char buf[sizeof(value)]; in PutFixed64()
43 EncodeFixed64(buf, value); in PutFixed64()
100 dst->append(value.data(), value.size()); in PutLengthPrefixedSlice()
124 *value = result; in GetVarint32PtrFallback()
[all …]
H A Dcoding.h22 extern void PutFixed32(std::string* dst, uint32_t value);
23 extern void PutFixed64(std::string* dst, uint64_t value);
30 extern bool GetVarint32(Slice* input, uint32_t* value);
31 extern bool GetVarint64(Slice* input, uint64_t* value);
46 extern void EncodeFixed32(char* dst, uint32_t value);
47 extern void EncodeFixed64(char* dst, uint64_t value);
52 extern char* EncodeVarint32(char* dst, uint32_t value);
53 extern char* EncodeVarint64(char* dst, uint64_t value);
91 uint32_t* value) { in GetVarint32Ptr() argument
95 *value = result; in GetVarint32Ptr()
[all …]
H A Dhistogram.cc44 void Histogram::Add(double value) { in Add() argument
47 while (b < kNumBuckets - 1 && kBucketLimit[b] <= value) { in Add()
51 if (min_ > value) min_ = value; in Add()
52 if (max_ < value) max_ = value; in Add()
54 sum_ += value; in Add()
55 sum_squares_ += (value * value); in Add()
H A Dlogging.cc22 void AppendEscapedStringTo(std::string* str, const Slice& value) { in AppendEscapedStringTo() argument
23 for (size_t i = 0; i < value.size(); i++) { in AppendEscapedStringTo()
24 char c = value[i]; in AppendEscapedStringTo()
42 std::string EscapeString(const Slice& value) { in EscapeString() argument
44 AppendEscapedStringTo(&r, value); in EscapeString()
H A Dcache.cc43 void* value; member
44 void (*deleter)(const Slice&, void* value);
59 return *(reinterpret_cast<Slice*>(value)); in key()
163 void* value, size_t charge,
164 void (*deleter)(const Slice& key, void* value));
234 (*e->deleter)(e->key(), e->value); in Unref()
270 const Slice& key, uint32_t hash, void* value, size_t charge, in Insert() argument
271 void (*deleter)(const Slice& key, void* value)) { in Insert()
276 e->value = value; in Insert()
361 virtual Handle* Insert(const Slice& key, void* value, size_t charge, in Insert() argument
[all …]
H A Dlogging.h26 extern void AppendEscapedStringTo(std::string* str, const Slice& value);
33 extern std::string EscapeString(const Slice& value);
H A Dcache_test.cc57 void Insert(int key, int value, int charge = 1) { in Insert() argument
58 cache_->Release(cache_->Insert(EncodeKey(key), EncodeValue(value), charge, in Insert()
62 Cache::Handle* InsertAndReturnHandle(int key, int value, int charge = 1) { in InsertAndReturnHandle() argument
63 return cache_->Insert(EncodeKey(key), EncodeValue(value), charge, in InsertAndReturnHandle()
H A Dhistogram.h18 void Add(double value);
/leveldb-1.20/db/
H A Dwrite_batch.cc49 Slice key, value; in Iterate() local
58 GetLengthPrefixedSlice(&input, &value)) { in Iterate()
59 handler->Put(key, value); in Iterate()
98 void WriteBatch::Put(const Slice& key, const Slice& value) { in Put() argument
102 PutLengthPrefixedSlice(&rep_, value); in Put()
117 virtual void Put(const Slice& key, const Slice& value) { in Put() argument
118 mem_->Add(sequence_, kTypeValue, key, value); in Put()
H A Dmemtable.cc62 virtual Slice value() const { in value() function in leveldb::MemTableIterator
84 const Slice& value) { in Add() argument
91 size_t val_size = value.size(); in Add()
103 memcpy(p, value.data(), val_size); in Add()
108 bool MemTable::Get(const LookupKey& key, std::string* value, Status* s) { in Get() argument
133 value->assign(v.data(), v.size()); in Get()
H A Dmemtable.h55 const Slice& value);
61 bool Get(const LookupKey& key, std::string* value, Status* s);
H A Ddumpfile.cc74 virtual void Put(const Slice& key, const Slice& value) { in Put() argument
78 AppendEscapedStringTo(&r, value); in Put()
175 AppendEscapedStringTo(&r, iter->value()); in DumpTable()
192 AppendEscapedStringTo(&r, iter->value()); in DumpTable()
H A Ddb_iter.cc70 virtual Slice value() const { in value() function in leveldb::__anon9603b1580111::DBIter
72 return (direction_ == kForward) ? iter_->value() : saved_value_; in value()
132 ssize_t n = k.size() + iter_->value().size(); in ParseKey()
250 Slice raw_value = iter_->value(); in FindPrevUserEntry()
H A Ddb_impl.h32 virtual Status Put(const WriteOptions&, const Slice& key, const Slice& value);
37 std::string* value);
41 virtual bool GetProperty(const Slice& property, std::string* value);
H A Dautocompact_test.cc59 std::string value(kValueSize, 'x'); in DoReads() local
64 ASSERT_OK(db_->Put(WriteOptions(), Key(i), value)); in DoReads()
/leveldb-1.20/table/
H A Dblock_builder.cc73 void BlockBuilder::Add(const Slice& key, const Slice& value) { in Add() argument
96 PutVarint32(&buffer_, value.size()); in Add()
100 buffer_.append(value.data(), value.size()); in Add()
H A Dtable.cc114 ReadFilter(iter->value()); in ReadMeta()
151 static void DeleteCachedBlock(const Slice& key, void* value) { in DeleteCachedBlock() argument
152 Block* block = reinterpret_cast<Block*>(value); in DeleteCachedBlock()
233 Slice handle_value = iiter->value(); in InternalGet()
241 Iterator* block_iter = BlockReader(this, options, iiter->value()); in InternalGet()
244 (*saver)(arg, block_iter->key(), block_iter->value()); in InternalGet()
265 Slice input = index_iter->value(); in ApproximateOffsetOf()
H A Diterator_wrapper.h42 Slice value() const { assert(Valid()); return iter_->value(); } in value() function
H A Dtwo_level_iterator.cc41 virtual Slice value() const { in value() function in leveldb::__anon627440db0111::TwoLevelIterator
43 return data_iter_.value(); in value()
160 Slice handle = index_iter_.value(); in InitDataBlock()
H A Dtable_test.cc146 void Add(const std::string& key, const Slice& value) { in Add() argument
147 data_[key] = value.ToString(); in Add()
302 virtual Slice value() const { return iter_->value(); } in value() function in leveldb::KeyConvertingIterator
473 void Add(const std::string& key, const std::string& value) { in Add() argument
474 constructor_->Add(key, value); in Add()
608 return "'" + it->key().ToString() + "->" + it->value().ToString() + "'"; in ToString()
751 std::string value; in TEST() local
754 ASSERT_TRUE(db()->GetProperty(name, &value)); in TEST()
755 files += atoi(value.c_str()); in TEST()
779 iter->value().ToString().c_str()); in TEST()
H A Dblock_builder.h26 void Add(const Slice& key, const Slice& value);
/leveldb-1.20/include/leveldb/
H A Dwrite_batch.h37 void Put(const Slice& key, const Slice& value);
49 virtual void Put(const Slice& key, const Slice& value) = 0;
H A Ddb.h63 const Slice& value) = 0;
84 const Slice& key, std::string* value) = 0;
120 virtual bool GetProperty(const Slice& property, std::string* value) = 0;
H A Dcache.h52 virtual Handle* Insert(const Slice& key, void* value, size_t charge,
53 void (*deleter)(const Slice& key, void* value)) = 0;
/leveldb-1.20/doc/
H A Dtable_format.md26 1. The sequence of key/value pairs in the file are stored in sorted
38 block where the key is the name of the meta block and the value is a
43 the first key in the successive data block. The value is the
98 of the statistic. The value contains the statistic.
105 value size (uncompressed)

12