Visual RFC.
ALL RFCs / RFC 8949
Read the RFC ↗
RFC 8949 / MECHANISM GUIDE

Indefinite lengths

03

Some strings and containers can end with a break code rather than carrying a known length.

RFC 8949 · § 3.2EXAMPLE
3 / 3
03
Close with break

FF completes the array [1,2].

Indefinite lengthsSome strings and containers can end with a break code rather than carrying a known length.Indefinite lengths9F0102FFBreak ends [1,2]

Key idea: Indefinite-length forms exist for byte/text strings, arrays, and maps.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Indefinite-length forms exist for byte/text strings, arrays, and maps.
  • FF terminates the permitted indefinite-length item; it is not a general standalone value.
  • Map content still requires complete key/value pairs.

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

First, agree how to read the message.

An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 8949

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗