Function gix_packetline_blocking::decode
source ยท pub fn decode(data: &[u8]) -> Result<PacketLineRef<'_>, Error>
Expand description
Decode an entire packet line from data or fail.
Note that failure also happens if there is not enough data to parse a complete packet line, as opposed to streaming()
decoding
succeeds in that case, stating how much more bytes are required.