[][src]Function git_packetline::decode

pub fn decode(data: &[u8]) -> Result<PacketLine<'_>, Error>

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.