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

Function sha256

atomic-core/src/change/change.rs:1277–1279  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

1275 }
1276
1277 fn sha256(byte: u8) -> GitObjectId {
1278 GitObjectId::new(GitHashAlgorithm::Sha256, vec![byte; 32]).unwrap()
1279 }
1280
1281 fn legacy_v1_fixture_bytes() -> Vec<u8> {
1282 let hex: String = include_str!("format_v3/fixtures/cb_fmt1_legacy_v1_object.hex")

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected