Home
last modified time | relevance | path

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

/leveldb-1.20/util/
H A Dbloom_test.cc103 static int NextLength(int length) { in NextLength() argument
104 if (length < 10) { in NextLength()
105 length += 1; in NextLength()
106 } else if (length < 100) { in NextLength()
107 length += 10; in NextLength()
108 } else if (length < 1000) { in NextLength()
109 length += 100; in NextLength()
111 length += 1000; in NextLength()
113 return length; in NextLength()
123 for (int length = 1; length <= 10000; length = NextLength(length)) { in TEST() local
[all …]
H A Dstatus.cc68 uint32_t length; in ToString() local
69 memcpy(&length, state_, sizeof(length)); in ToString()
70 result.append(state_ + 5, length); in ToString()
H A Denv_posix.cc186 PosixMmapReadableFile(const std::string& fname, void* base, size_t length, in PosixMmapReadableFile() argument
188 : filename_(fname), mmapped_region_(base), length_(length), in PosixMmapReadableFile()
/leveldb-1.20/port/
H A Dport_posix.h116 inline bool Snappy_Compress(const char* input, size_t length, in Snappy_Compress() argument
119 output->resize(snappy::MaxCompressedLength(length)); in Snappy_Compress()
121 snappy::RawCompress(input, length, &(*output)[0], &outlen); in Snappy_Compress()
129 inline bool Snappy_GetUncompressedLength(const char* input, size_t length, in Snappy_GetUncompressedLength() argument
132 return snappy::GetUncompressedLength(input, length, result); in Snappy_GetUncompressedLength()
138 inline bool Snappy_Uncompress(const char* input, size_t length, in Snappy_Uncompress() argument
141 return snappy::RawUncompress(input, length, output); in Snappy_Uncompress()
H A Dport_example.h112 extern bool Snappy_GetUncompressedLength(const char* input, size_t length,
/leveldb-1.20/db/
H A Dlog_reader.cc231 const uint32_t length = a | (b << 8); in ReadPhysicalRecord() local
232 if (kHeaderSize + length > buffer_.size()) { in ReadPhysicalRecord()
245 if (type == kZeroType && length == 0) { in ReadPhysicalRecord()
256 uint32_t actual_crc = crc32c::Value(header + 6, 1 + length); in ReadPhysicalRecord()
269 buffer_.remove_prefix(kHeaderSize + length); in ReadPhysicalRecord()
272 if (end_of_buffer_offset_ - buffer_.size() - kHeaderSize - length < in ReadPhysicalRecord()
278 *result = Slice(header + kHeaderSize, length); in ReadPhysicalRecord()
H A Dlog_writer.h44 Status EmitPhysicalRecord(RecordType type, const char* ptr, size_t length);
H A Dfault_injection_test.cc52 Status Truncate(const std::string& filename, uint64_t length) { in Truncate() argument
60 char* scratch = new char[length]; in Truncate()
62 s = orig_file->Read(length, &result, scratch); in Truncate()
H A Dc.cc97 const char* key, size_t length,
483 const char* key, size_t length, in leveldb_filterpolicy_create() argument
H A Dc_test.c150 const char* key, size_t length, in FilterKeyMatch() argument
/leveldb-1.20/doc/
H A Dlog_format.md11 length: uint16 // little-endian
13 data: uint8[length]
20 length record is added, the writer must emit a FIRST record (which contains zero
42 A: length 1000
43 B: length 97270
44 C: length 8000
H A Dtable_format.md46 5. At the very end of the file is a fixed length footer that contains
51 padding: char[40-p-q];// zeroed bytes to make fixed length
H A Dindex.md205 of the `leveldb::Slice` type. Slice is a simple structure that contains a length
385 filename -> permission-bits, length, list of file_block_ids
/leveldb-1.20/table/
H A Dfilter_block.cc65 size_t length = start_[i+1] - start_[i]; in GenerateFilter() local
66 tmp_keys_[i] = Slice(base, length); in GenerateFilter()
/leveldb-1.20/include/leveldb/
H A Dc.h233 const char* key, size_t length,
/leveldb-1.20/
H A DREADME.md164 length into some other byte array.