gix_packetline::decode

Function all_at_once

source
pub fn all_at_once(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.