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

Function decode_hex

atomic-cli/tests/it/git_import_cb9b_test.rs:164–169  ·  view source on GitHub ↗
(hex: &str)

Source from the content-addressed store, hash-verified

162}
163
164fn decode_hex(hex: &str) -> Vec<u8> {
165 (0..hex.len())
166 .step_by(2)
167 .map(|index| u8::from_str_radix(&hex[index..index + 2], 16).unwrap())
168 .collect()
169}
170
171fn tagged(hex: &str) -> GitObjectId {
172 let algorithm = match hex.len() {

Callers 2

taggedFunction · 0.70

Calls 3

collectMethod · 0.45
lenMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected