Decode a data-channel frame produced by encodeFrame.
The received frame buffer (header plus payload).
The parsed DecodedFrame; payload is a zero-copy view into data.
DecodedFrame
payload
data
FileTransferError with code FT_INVALID_FRAME if the buffer is smaller than the header.
FT_INVALID_FRAME
Decode a data-channel frame produced by encodeFrame.