decode

fun <T> decode(format: BinaryFormat, deserializer: DeserializationStrategy<T>): T

Decodes the logical payload using format and deserializer.

For a full-array Swatch the backing array is handed directly to BinaryFormat.decodeFromByteArray — zero allocation. For a sub-view created by dropFirst the logical slice is copied first, which is unavoidable.