Home
last modified time | relevance | path

Searched refs:Block (Results 1 – 12 of 12) sorted by relevance

/system/ulib/inspect/test/
A Dsnapshot_tests.cpp14 using inspect::internal::Block;
23 Block* header = reinterpret_cast<Block*>(vmo.start()); in ValidRead()
39 uint8_t buf[snapshot.size() - sizeof(Block)]; in ValidRead()
40 memset(buf, 'a', snapshot.size() - sizeof(Block)); in ValidRead()
41 EXPECT_EQ(0, memcmp(snapshot.data() + sizeof(Block), buf, snapshot.size() - sizeof(Block))); in ValidRead()
51 Block* header = reinterpret_cast<Block*>(vmo.start()); in InvalidWritePending()
74 Block* header = reinterpret_cast<Block*>(vmo.start()); in ValidPendingSkipCheck()
97 Block* header = reinterpret_cast<Block*>(vmo.start()); in InvalidGenerationChange()
121 Block* header = reinterpret_cast<Block*>(vmo.start()); in ValidGenerationChangeSkipCheck()
146 Block* header = reinterpret_cast<Block*>(vmo.start()); in InvalidBadMagicNumber()
[all …]
A Dscanner_tests.cpp12 using inspect::internal::Block;
24 ScanBlocks(buf, 1024, [&count](BlockIndex index, const Block* block) { count++; })); in ReadEmpty()
38 ScanBlocks(buf, 1020, [&count](BlockIndex index, const Block* block) { count++; })); in ReadMisaligned()
53 ScanBlocks(buf, inspect::kMinOrderSize, [&](BlockIndex index, const Block* block) { in ReadSingle()
68 Block* block = reinterpret_cast<Block*>(buf); in ReadOutOfBounds()
74 [&count](BlockIndex index, const Block* block) { count++; })); in ReadOutOfBounds()
A Dheap_tests.cpp14 using inspect::internal::Block;
19 constexpr size_t kMinAllocationSize = sizeof(Block);
39 ScanBlocks(heap.data(), heap.size(), [&ret](BlockIndex index, const Block* block) { in dump()
/system/ulib/inspect/
A Dscanner.cpp12 fbl::Function<void(BlockIndex, const Block*)> callback) { in ScanBlocks()
15 const Block* block = reinterpret_cast<const Block*>(buffer + offset); in ScanBlocks()
16 if (size - offset < sizeof(Block)) { in ScanBlocks()
A Dsnapshot.cpp10 using internal::Block;
35 if (size < sizeof(internal::Block)) { in Create()
42 status = Snapshot::Read(vmo, sizeof(internal::Block), buffer.begin()); in Create()
47 read_observer(buffer.begin(), sizeof(internal::Block)); in Create()
99 Block* block = reinterpret_cast<Block*>(buffer); in ParseHeader()
107 internal::Block* Snapshot::GetBlock(internal::BlockIndex index) const { in GetBlock()
111 return reinterpret_cast<internal::Block*>(buffer_.begin() + index * kMinOrderSize); in GetBlock()
A Dheap.cpp41 ZX_DEBUG_ASSERT_MSG(min_size >= sizeof(Block), "Block allocation size %lu is too small", in Allocate()
/system/ulib/inspect/include/lib/inspect/
A Dblock.h45 struct Block { struct
58 static_assert(sizeof(Block) == 16, "Block header must be 16 bytes"); argument
59 static_assert(sizeof(Block) == kMinOrderSize,
121 constexpr BlockOrder GetOrder(const Block* block) { in GetOrder()
125 constexpr BlockType GetType(const Block* block) { in GetType()
130 return OrderToSize(order) - sizeof(Block::header); in PayloadCapacity()
134 return fbl::max(payload_size + sizeof(Block::header), kMinOrderSize); in BlockSizeForPayload()
137 constexpr size_t kMaxPayloadSize = kMaxOrderSize - sizeof(Block::header);
A Dheap.h46 Block* GetBlock(BlockIndex block) const { in GetBlock()
47 return reinterpret_cast<Block*>(((uint8_t*)vmo_->start()) + block * kMinOrderSize); in GetBlock()
A Dscanner.h20 fbl::Function<void(BlockIndex, const Block*)> callback);
A Dsnapshot.h76 internal::Block* GetBlock(internal::BlockIndex index) const;
/system/fidl/fuchsia-hardware-skipblock/
A Dskip-block.fidl26 /// Block # to begin operation from.
/system/banjo/ddk-protocol-block/
A Dblock.banjo88 interface Block {

Completed in 16 milliseconds