MCPcopy Create free account
hub / github.com/git/git / raw_len

Method raw_len

src/hash.rs:288–293  ·  view source on GitHub ↗

The length of binary object IDs in this algorithm in bytes.

(self)

Source from the content-addressed store, hash-verified

286
287 /// The length of binary object IDs in this algorithm in bytes.
288 pub const fn raw_len(self) -> usize {
289 match self {
290 HashAlgorithm::SHA1 => 20,
291 HashAlgorithm::SHA256 => 32,
292 }
293 }
294
295 /// The length of object IDs in this algorithm in hexadecimal characters.
296 pub const fn hex_len(self) -> usize {

Callers 11

writeMethod · 0.80
last_matching_offsetMethod · 0.80
find_short_name_lenMethod · 0.80
newMethod · 0.80
look_up_objectMethod · 0.80
oid_from_offsetMethod · 0.80
newMethod · 0.80
as_sliceMethod · 0.80
as_mut_sliceMethod · 0.80
hex_lenMethod · 0.80
finalizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected