Function git_packetline::decode[][src]

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.