Searched refs:kBlockHeaderSize (Results 1 – 13 of 13) sorted by relevance
/external/cronet/net/disk_cache/blockfile/ |
D | disk_format_base.h | 33 const int kBlockHeaderSize = 8192; // Two pages: almost 64k entries variable 34 const int kMaxBlocks = (kBlockHeaderSize - 80) * 8; 63 static_assert(sizeof(BlockFileHeader) == kBlockHeaderSize, "bad header");
|
D | block_files.cc | 354 kBlockHeaderSize; in DeleteBlock() 408 kBlockHeaderSize; in IsValid() 447 if (!file->Init(name, kBlockHeaderSize)) { in OpenBlockFile() 453 if (file_len < static_cast<size_t>(kBlockHeaderSize)) { in OpenBlockFile() 474 header->max_entries * header->entry_size + kBlockHeaderSize) { in OpenBlockFile()
|
D | block_files_unittest.cc | 284 char header[kBlockHeaderSize]; in TEST_F() 285 memset(header, 'a', kBlockHeaderSize); in TEST_F() 286 EXPECT_TRUE(base::WriteFile(filename, {header, kBlockHeaderSize})); in TEST_F()
|
D | entry_impl.cc | 458 offset = address.start_block() * address.BlockSize() + kBlockHeaderSize; in CreateEntry() 801 offset = address.start_block() * address.BlockSize() + kBlockHeaderSize; in GetKey() 1081 kBlockHeaderSize; in InternalReadData() 1181 kBlockHeaderSize; in InternalWriteData() 1443 offset = address.start_block() * address.BlockSize() + kBlockHeaderSize; in CopyToLocalBuffer() 1536 offset = address.start_block() * address.BlockSize() + kBlockHeaderSize; in Flush()
|
D | sparse_control.cc | 129 disk_cache::kBlockHeaderSize; in ReadData()
|
D | backend_impl.cc | 1494 kBlockHeaderSize; in InitStats() 1519 kBlockHeaderSize; in StoreStats()
|
/external/cronet/third_party/protobuf/src/google/protobuf/ |
D | arena.cc | 70 std::numeric_limits<size_t>::max() - SerialArena::kBlockHeaderSize); in AllocateMemory() 71 size = std::max(size, SerialArena::kBlockHeaderSize + min_bytes); in AllocateMemory() 111 ptr_ = b->Pointer(kBlockHeaderSize + ThreadSafeArena::kSerialArenaSize); in SerialArena() 118 GOOGLE_DCHECK_LE(kBlockHeaderSize + ThreadSafeArena::kSerialArenaSize, mem.size); in New() 122 return new (b->Pointer(kBlockHeaderSize)) SerialArena(b, owner, stats); in New() 157 size_t used = ptr_ - head_->Pointer(kBlockHeaderSize); in AllocateNewBlock() 175 ptr_ = head_->Pointer(kBlockHeaderSize); in AllocateNewBlock() 184 uint64_t space_used = ptr_ - head_->Pointer(kBlockHeaderSize); in SpaceUsed() 235 if (mem != nullptr && size >= kBlockHeaderSize + kSerialArenaSize) { in InitializeFrom() 268 constexpr size_t kMinimumSize = kBlockHeaderSize + kSerialArenaSize + kAPSize; in InitializeWithPolicy()
|
D | arena_impl.h | 432 static constexpr size_t kBlockHeaderSize = AlignUpTo8(sizeof(Block)); 664 static constexpr size_t kBlockHeaderSize = SerialArena::kBlockHeaderSize; 667 static_assert(kBlockHeaderSize % 8 == 0,
|
D | arena.h | 268 internal::ThreadSafeArena::kBlockHeaderSize +
|
/external/protobuf/src/google/protobuf/ |
D | arena.cc | 70 std::numeric_limits<size_t>::max() - SerialArena::kBlockHeaderSize); in AllocateMemory() 71 size = std::max(size, SerialArena::kBlockHeaderSize + min_bytes); in AllocateMemory() 111 ptr_ = b->Pointer(kBlockHeaderSize + ThreadSafeArena::kSerialArenaSize); in SerialArena() 118 GOOGLE_DCHECK_LE(kBlockHeaderSize + ThreadSafeArena::kSerialArenaSize, mem.size); in New() 122 return new (b->Pointer(kBlockHeaderSize)) SerialArena(b, owner, stats); in New() 157 size_t used = ptr_ - head_->Pointer(kBlockHeaderSize); in AllocateNewBlock() 175 ptr_ = head_->Pointer(kBlockHeaderSize); in AllocateNewBlock() 184 uint64_t space_used = ptr_ - head_->Pointer(kBlockHeaderSize); in SpaceUsed() 235 if (mem != nullptr && size >= kBlockHeaderSize + kSerialArenaSize) { in InitializeFrom() 268 constexpr size_t kMinimumSize = kBlockHeaderSize + kSerialArenaSize + kAPSize; in InitializeWithPolicy()
|
D | arena_impl.h | 439 static constexpr size_t kBlockHeaderSize = AlignUpTo8(sizeof(Block)); 671 static constexpr size_t kBlockHeaderSize = SerialArena::kBlockHeaderSize; 674 static_assert(kBlockHeaderSize % 8 == 0,
|
D | arena.h | 268 internal::ThreadSafeArena::kBlockHeaderSize +
|
/external/cronet/net/tools/dump_cache/ |
D | dump_files.cc | 83 disk_cache::kBlockHeaderSize; in DumpStats() 300 disk_cache::kBlockHeaderSize; in HexDump()
|