LengthKind

Types

Link copied to clipboard
data class FromField(val field: String) : LengthKind
Link copied to clipboard
data class Prefixed(val prefix: String) : LengthKind
Link copied to clipboard
data class Remaining(val trailingBytes: Int = 0) : LengthKind

Consume remaining bytes for this field, reserving trailingBytes at the end for fields that follow. The processor sets trailingBytes automatically when fixed-size trailing fields follow a @RemainingBytes field; users don't specify it directly.