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

Method as_bytes

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

Raw digest bytes.

(&self)

Source from the content-addressed store, hash-verified

115
116 /// Raw digest bytes.
117 pub fn as_bytes(&self) -> &[u8] {
118 match self {
119 GitOid::Sha1(bytes) => bytes.as_slice(),
120 GitOid::Sha256(bytes) => bytes.as_slice(),
121 }
122 }
123
124 /// Lowercase hex encoding, as used in Git refs and messages.
125 pub fn to_hex(&self) -> String {

Callers 15

local_set_idMethod · 0.45
mint_tokenFunction · 0.45
deserializeFunction · 0.45
serveFunction · 0.45
changeFunction · 0.45
bigramsFunction · 0.45
wildmatchFunction · 0.45
read_working_bytesFunction · 0.45
transform_identsFunction · 0.45
parseMethod · 0.45

Calls 1

as_sliceMethod · 0.45