calculate_object_hash

Function calculate_object_hash 

Source
pub fn calculate_object_hash(obj_type: ObjectType, data: &Vec<u8>) -> ObjectHash
Expand description

Calculate the SHA1 hash of the given object.
<type> <size>\0<content>
data: The decompressed content of the object