pub fn check_plain_payload(data: &[u8]) -> Result<()>Expand description
Check that data is a packed payload in the form we produce: a
FORMAT_PLAIN byte followed by at least one node byte.
The compressed form is a legitimate inbound frame but nothing any marshal*
writes, so anything that only ever handles our own output holds a buffer it
did not build if it sees one. A shape check, not a decode: it exists because
passing node bytes where a packed payload is expected fails nowhere locally,
and the peer answers by dropping the connection.