Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 16 of 16) sorted by relevance

/leveldb-1.20/util/
H A Darena.h22 char* Allocate(size_t bytes);
25 char* AllocateAligned(size_t bytes);
34 char* AllocateFallback(size_t bytes);
52 inline char* Arena::Allocate(size_t bytes) { in Allocate() argument
56 assert(bytes > 0); in Allocate()
57 if (bytes <= alloc_bytes_remaining_) { in Allocate()
59 alloc_ptr_ += bytes; in Allocate()
60 alloc_bytes_remaining_ -= bytes; in Allocate()
63 return AllocateFallback(bytes); in Allocate()
H A Darena.cc23 char* Arena::AllocateFallback(size_t bytes) { in AllocateFallback() argument
24 if (bytes > kBlockSize / 4) { in AllocateFallback()
27 char* result = AllocateNewBlock(bytes); in AllocateFallback()
36 alloc_ptr_ += bytes; in AllocateFallback()
37 alloc_bytes_remaining_ -= bytes; in AllocateFallback()
41 char* Arena::AllocateAligned(size_t bytes) { in AllocateAligned() argument
46 size_t needed = bytes + slop; in AllocateAligned()
54 result = AllocateFallback(bytes); in AllocateAligned()
H A Darena_test.cc22 size_t bytes = 0; in TEST() local
47 bytes += s; in TEST()
49 ASSERT_GE(arena.MemoryUsage(), bytes); in TEST()
51 ASSERT_LE(arena.MemoryUsage(), bytes * 1.10); in TEST()
H A Dbloom.cc43 size_t bytes = (bits + 7) / 8; in CreateFilter() local
44 bits = bytes * 8; in CreateFilter()
47 dst->resize(init_size + bytes, 0); in CreateFilter()
/leveldb-1.20/db/
H A Dlog_reader.h29 virtual void Corruption(size_t bytes, const Status& status) = 0;
102 void ReportCorruption(uint64_t bytes, const char* reason);
103 void ReportDrop(uint64_t bytes, const Status& reason);
H A Ddb_bench.cc632 int64_t bytes = 0; in Crc32c() local
637 bytes += size; in Crc32c()
642 thread->stats.AddBytes(bytes); in Crc32c()
665 int64_t bytes = 0; in SnappyCompress() local
672 bytes += input.size(); in SnappyCompress()
692 int64_t bytes = 0; in SnappyUncompress() local
697 bytes += input.size(); in SnappyUncompress()
754 int64_t bytes = 0; in DoWrite() local
771 thread->stats.AddBytes(bytes); in DoWrite()
777 int64_t bytes = 0; in ReadSequential() local
[all …]
H A Dlog_reader.cc188 void Reader::ReportCorruption(uint64_t bytes, const char* reason) { in ReportCorruption() argument
189 ReportDrop(bytes, Status::Corruption(reason)); in ReportCorruption()
192 void Reader::ReportDrop(uint64_t bytes, const Status& reason) { in ReportDrop() argument
194 end_of_buffer_offset_ - buffer_.size() - bytes >= initial_offset_) { in ReportDrop()
195 reporter_->Corruption(static_cast<size_t>(bytes), reason); in ReportDrop()
H A Drepair.cc78 unsigned long long bytes = 0; in Run() local
80 bytes += tables_[i].meta.file_size; in Run()
89 bytes); in Run()
167 virtual void Corruption(size_t bytes, const Status& s) { in ConvertLogToTable()
171 static_cast<int>(bytes), in ConvertLogToTable()
H A Dlog_test.cc97 virtual void Corruption(size_t bytes, const Status& status) { in Corruption() argument
98 dropped_bytes_ += bytes; in Corruption()
163 void ShrinkSize(int bytes) { in ShrinkSize() argument
164 dest_.contents_.resize(dest_.contents_.size() - bytes); in ShrinkSize()
H A Ddumpfile.cc39 virtual void Corruption(size_t bytes, const Status& status) { in Corruption() argument
41 AppendNumberTo(&r, bytes); in Corruption()
H A Ddb_impl.cc373 virtual void Corruption(size_t bytes, const Status& s) { in RecoverLogFile()
376 fname, static_cast<int>(bytes), s.ToString().c_str()); in RecoverLogFile()
H A Dversion_set.cc908 virtual void Corruption(size_t bytes, const Status& s) { in Recover()
/leveldb-1.20/doc/
H A Dlog_format.md15 A record never starts within the last six bytes of a block (since it won't fit).
16 Any leftover bytes here form the trailer, which must consist entirely of zero
17 bytes and must be skipped by readers.
19 Aside: if exactly seven bytes are left in the current block, and a new non-zero
21 bytes of user data) to fill up the trailing seven bytes of the block and then
51 bytes free in the third block, which will be left empty as the trailer.
H A Dtable_format.md51 padding: char[40-p-q];// zeroed bytes to make fixed length
83 [offset of filter 0] : 4 bytes
84 [offset of filter 1] : 4 bytes
85 [offset of filter 2] : 4 bytes
87 [offset of filter N-1] : 4 bytes
89 [offset of beginning of offset array] : 4 bytes
H A Dindex.md210 contain `'\0'` bytes.
248 bytes lexicographically. You can however supply a custom comparator when opening
316 approximately 4096 uncompressed bytes. Applications that mostly do bulk scans
473 The `GetApproximateSizes` method can used to get the approximate number of bytes
484 The preceding call will set `sizes[0]` to the approximate number of bytes of
486 approximate number of bytes used by the key range `[x..z)`.
/leveldb-1.20/
H A DREADME.md74 Keys: 16 bytes each
75 Values: 100 bytes each (50 bytes after compression)