pub fn get_bytes_owned<B: Buf>(buf: &mut B) -> Result<Bytes, ProtocolError>
Returns the underlying protocol error when input is truncated, contains an invalid length or tag, or cannot be encoded for the selected version.