pub fn decode(input: &[u8]) -> Result<(Kind, u64, usize), Error>
Decode a loose object header, being <kind> <size>\0, returns (Kind, size, consumed bytes).
<kind> <size>\0
Kind
size
consumed bytes
size is the uncompressed size of the payload in bytes.