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

Function fragment

atomic-cli/src/commands/agent/provenance_rpc.rs:1346–1352  ·  view source on GitHub ↗
(seq: u64, offset: u64, bytes: &[u8], complete: bool)

Source from the content-addressed store, hash-verified

1344 }
1345
1346 fn fragment(seq: u64, offset: u64, bytes: &[u8], complete: bool) -> pb::FrozenFragment {
1347 pb::FrozenFragment {
1348 cursor: Some(pb::PageCursor { seq, offset }),
1349 bytes: bytes.to_vec(),
1350 complete,
1351 }
1352 }
1353
1354 #[test]
1355 fn frozen_pages_reassemble_split_envelopes_and_reject_bad_continuations() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected