pub fn decode_packet(input: &[u8]) -> Result<(Packet, usize), ProtocolError>Expand description
Decode the first pkt-line in input.
Returns the packet and the number of bytes consumed.
0004 is accepted as Packet::Data with an empty payload.
Uppercase hex is rejected (gitprotocol-common HEXDIG is lowercase).