| /leveldb-1.20/util/ |
| H A D | bloom_test.cc | 103 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 D | status.cc | 68 uint32_t length; in ToString() local 69 memcpy(&length, state_, sizeof(length)); in ToString() 70 result.append(state_ + 5, length); in ToString()
|
| H A D | env_posix.cc | 186 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 D | port_posix.h | 116 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 D | port_example.h | 112 extern bool Snappy_GetUncompressedLength(const char* input, size_t length,
|
| /leveldb-1.20/db/ |
| H A D | log_reader.cc | 231 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 D | log_writer.h | 44 Status EmitPhysicalRecord(RecordType type, const char* ptr, size_t length);
|
| H A D | fault_injection_test.cc | 52 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 D | c.cc | 97 const char* key, size_t length, 483 const char* key, size_t length, in leveldb_filterpolicy_create() argument
|
| H A D | c_test.c | 150 const char* key, size_t length, in FilterKeyMatch() argument
|
| /leveldb-1.20/doc/ |
| H A D | log_format.md | 11 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 D | table_format.md | 46 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 D | index.md | 205 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 D | filter_block.cc | 65 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 D | c.h | 233 const char* key, size_t length,
|
| /leveldb-1.20/ |
| H A D | README.md | 164 length into some other byte array.
|