Home
last modified time | relevance | path

Searched refs:kBlockHeaderSize (Results 1 – 13 of 13) sorted by relevance

/external/cronet/net/disk_cache/blockfile/
Ddisk_format_base.h33 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");
Dblock_files.cc354 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()
Dblock_files_unittest.cc284 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()
Dentry_impl.cc458 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()
Dsparse_control.cc129 disk_cache::kBlockHeaderSize; in ReadData()
Dbackend_impl.cc1494 kBlockHeaderSize; in InitStats()
1519 kBlockHeaderSize; in StoreStats()
/external/cronet/third_party/protobuf/src/google/protobuf/
Darena.cc70 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()
Darena_impl.h432 static constexpr size_t kBlockHeaderSize = AlignUpTo8(sizeof(Block));
664 static constexpr size_t kBlockHeaderSize = SerialArena::kBlockHeaderSize;
667 static_assert(kBlockHeaderSize % 8 == 0,
Darena.h268 internal::ThreadSafeArena::kBlockHeaderSize +
/external/protobuf/src/google/protobuf/
Darena.cc70 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()
Darena_impl.h439 static constexpr size_t kBlockHeaderSize = AlignUpTo8(sizeof(Block));
671 static constexpr size_t kBlockHeaderSize = SerialArena::kBlockHeaderSize;
674 static_assert(kBlockHeaderSize % 8 == 0,
Darena.h268 internal::ThreadSafeArena::kBlockHeaderSize +
/external/cronet/net/tools/dump_cache/
Ddump_files.cc83 disk_cache::kBlockHeaderSize; in DumpStats()
300 disk_cache::kBlockHeaderSize; in HexDump()