MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / oid_size

Method oid_size

atomic-repository/src/git_binding/codec.rs:44–49  ·  view source on GitHub ↗

Width in bytes of one object id in this format.

(self)

Source from the content-addressed store, hash-verified

42impl GitObjectFormat {
43 /// Width in bytes of one object id in this format.
44 pub fn oid_size(self) -> usize {
45 match self {
46 GitObjectFormat::Sha1 => 20,
47 GitObjectFormat::Sha256 => 32,
48 }
49 }
50}
51
52/// A Git object identity tagged with its repository's object format (RFC 5.1).

Callers 1

validateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected