SentinelCountStrategy
Defines whether the sentinel of a ArrayLikeCodecSentinelSize strategy is written when encoding and required when decoding.
This mirrors the sentinelCountStrategy enumeration of Codama's sentinelCountNode.
"required"— The sentinel is written after the last item and must be present when decoding. Reaching the end of the byte array without it is an error. This is the default."optional"— The sentinel is written after the last item; when decoding, it is consumed if present but the collection may also end at the end of the byte array. Use this to tolerate tightly sized or legacy data that lacks the sentinel."omitted"— The sentinel is never written; when decoding, it is consumed if present and the collection also ends at the end of the byte array. Only meaningful when the collection is followed by unused space or the end of the byte array.
Under "optional" and "omitted", the sentinel must be no wider than the smallest possible item
(see the constraints on ArrayLikeCodecSentinelSize).