Opaque per-codec streaming state.
The public API checks codec/1 before delegating, so a state produced by one
codec cannot be fed to another. Codecs read their private data with data/1
and build a new state with new/2.
Summary
Types
A codec's stream state, tagged with the codec that owns it.
This is a public struct type rather than @opaque: the behaviour hands the
struct to a codec in another module, and an opaque type cannot be destructured
across that boundary (Dialyzer rejects it). It is still a typed struct, never a
bare term(); data remains deliberately untyped.