Nested structure (Bytefield)
Nesting is where hand-drawn byte diagrams fall apart, and where Bytefield is genuinely worth the unusual syntax.
#What this example shows
An outer envelope containing an inner record.
Repeated records, drawn as a gap with a count.
Colour distinguishing the layers.
#A worked example
Open it, edit it, or copy the source below.
The source, which you can paste into a new diagram and edit:
#Making it your own
Colour the layers differently, or nesting is invisible.
Say how many times a repeated region occurs, and where that count comes from.
Draw one instance of a repeated record in full, then a gap for the rest.
#Related
The offsets are computed, not drawn.
