Expand description
Annotated binary dump of an MLT tile, for debugging the wire format.
annotate_tile walks a tile buffer into a DumpTree of Regions.
render() formats that tree as an annotated hexdump.
Structs§
- BitField
- One sub-field of a bit-packed byte, e.g. a nibble of
stream_type. - Blob
Info - Stream metadata attached to a
RegionKind::DataBlobso the renderer can decode it. - Dump
Tree - The full annotation of a tile: a flat, depth-tagged region list.
- Region
- A single annotated span of the tile buffer.
- Render
Opts - Rendering options for
render.
Enums§
- Data
Mode - How data-payload blobs are shown.
- Decode
Hint - How a
RegionKind::DataBlobpayload is decoded for display. - Decoded
Blob - One data blob decoded for display, capped at the caller’s value count.
- Region
Kind - Whether a region is tile metadata or an opaque data payload.
Constants§
- UNANNOTATED
- Label of the synthetic leaf covering the bytes a bailed-out walk never reached.
Functions§
- annotate_
tile - Walk a whole tile buffer, producing an annotated
DumpTree. - decode_
blob - Decode
datathe wayinfo’s hint says to, keeping at mostmax_valuesvalues. - decode_
region - As
decode_blobfor the payload atindexoftree, which may need the streams beside it. - filter_
layer - The
idx-th top-level layer’s regions, orNonewhen the tile has no such layer. - render
- Render
treeas an annotated hexdump.bufmust be the buffer that was passed tosuper::annotate_tile.