OrderToSize
size_t OrderToSize(T order)
Defined at line 56 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/limits.h
IndexForOffset
size_t IndexForOffset(size_t offset)
Defined at line 60 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/limits.h
FitOrder
BlockOrder FitOrder(size_t size)
Defined at line 80 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
Returns the smallest order such that (kMinOrderSize << order) >= size. Size must be non-zero.
GetState
shared_ptr
GetState(const Inspector * inspector)
Defined at line 151 of file ../../zircon/system/ulib/inspect/inspector.cc
Internal accessor for obtaining fields from an Inspector.
ScanBlocks
zx_status_t ScanBlocks(const uint8_t * buffer, size_t size,
function_impl
callback)
Defined at line 11 of file ../../zircon/system/ulib/inspect/vmo/scanner.cc
Read blocks out of the buffer.
For each block that it found, this function calls the callback function with the block's index and a pointer to the block. If the callback returns false, it will not be called again.
Returns ZX_OK if the buffer was valid and successfully loaded, otherwise returns an error describing what went wrong.
GetBlock
const Block * GetBlock(const Snapshot * snapshot, BlockIndex index)
Defined at line 193 of file ../../zircon/system/ulib/inspect/vmo/snapshot.cc
Get a pointer to a block in the snapshot by index. Returns nullptr if the index is out of bounds.
GetOrder
BlockOrder GetOrder(const Block * block)
Defined at line 195 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
GetType
BlockType
GetType(const Block * block)
Defined at line 199 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
PayloadCapacity
size_t PayloadCapacity(BlockOrder order)
Defined at line 203 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
SizeForArrayPayload
optional
SizeForArrayPayload(
BlockType
payload_type)
Defined at line 207 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
ArrayCapacity
optional
ArrayCapacity(BlockOrder order,
BlockType
type)
Defined at line 221 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
BlockSizeForPayload
size_t BlockSizeForPayload(size_t payload_size)
Defined at line 230 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
GetArraySlot
T * GetArraySlot(B * block, size_t index)
Defined at line 244 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
check that the return pointer is at least as const as the input block
GetArraySlotForString
optional
GetArraySlotForString(const Block * block, size_t index)
Defined at line 268 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
Get a BlockIndex pointing to a string reference from a string array `Block`.
This can't return a pointer because the VMO representation of block indexes is smaller than the C++ one, so a string reference's BlockIndex written directly to the array through the pointer would overwrite other data.
SetArraySlotForString
void SetArraySlotForString(Block * block, size_t index_into_array, BlockIndex value)
Defined at line 282 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
Set the value of a string array at `index_into_array` with a `BlockIndex`, `value`, pointing to a string reference.
Necessary to have a helper function instead of returning a mutable pointer into the array for the reasons noted on `GetArraySlotForString`.
SetHeaderVmoSize
void SetHeaderVmoSize(Block * block, size_t headerVmoSize)
Defined at line 294 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
GetHeaderVmoSize
optional
GetHeaderVmoSize(const Block * block)
Defined at line 302 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/block.h
ArrayBlockFormatToDisplay
ArrayDisplayFormat
ArrayBlockFormatToDisplay(
ArrayBlockFormat
format)
Defined at line 352 of file ../../zircon/system/ulib/inspect/reader.cc
ReadFromSnapshotTree
result
ReadFromSnapshotTree(const SnapshotTree & tree)
Defined at line 542 of file ../../zircon/system/ulib/inspect/reader.cc
Parses a tree of snapshots into its corresponding Hierarchy, following all links.
TesterLoadStringReference
optional
TesterLoadStringReference(const State & state, BlockIndex index)
Defined at line 1296 of file ../../zircon/system/ulib/inspect/vmo/state.cc