toByteArray

Returns a copy of the logical payload as a fresh ByteArray.

This always allocates. It is the only public way to obtain a ByteArray from a Swatch; the explicit name makes the allocation visible at the call site.