gix_object::decode

Function loose_header

source
pub fn loose_header(
    input: &[u8],
) -> Result<(Kind, u64, usize), LooseHeaderDecodeError>
Expand description

Decode a loose object header, being <kind> <size>\0, returns (kind, size, consumed bytes).

size is the uncompressed size of the payload in bytes.