Function git_odb::loose::object::header::decode[][src]

pub fn decode(input: &[u8]) -> Result<(Kind, u64, usize), Error>

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

size is the uncompressed size of the payload in bytes.