Skip to main content

Module dump

Module dump 

Source
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.
BlobInfo
Stream metadata attached to a RegionKind::DataBlob so the renderer can decode it.
DumpTree
The full annotation of a tile: a flat, depth-tagged region list.
Region
A single annotated span of the tile buffer.
RenderOpts
Rendering options for render.

Enums§

DataMode
How data-payload blobs are shown.
DecodeHint
How a RegionKind::DataBlob payload is decoded for display.
DecodedBlob
One data blob decoded for display, capped at the caller’s value count.
RegionKind
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 data the way info’s hint says to, keeping at most max_values values.
decode_region
As decode_blob for the payload at index of tree, which may need the streams beside it.
filter_layer
The idx-th top-level layer’s regions, or None when the tile has no such layer.
render
Render tree as an annotated hexdump. buf must be the buffer that was passed to super::annotate_tile.