3 ms·
> The thing that tolerates the garbage is the decoder. The format says what’s valid and how to read/write it. The format also gives the decoder ways to re-sync
by account42 6y ago
> The thing that tolerates the garbage is the decoder. The format says what’s valid and how to read/write it.
The format also gives the decoder ways to re-synchronize with the stream. That isn't guaranteed to be possible for arbitrary formats.