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

Function change_file_header

libatomic/src/daemon/sandbox_wire.rs:323–329  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

321}
322
323fn change_file_header(bytes: &[u8]) -> Result<FileHeader, String> {
324 let header = bytes
325 .get(..FileHeader::SIZE)
326 .ok_or("truncated ATOM change header")?;
327 FileHeader::from_bytes(header.try_into().expect("fixed-size header slice"))
328 .map_err(|error| error.to_string())
329}
330
331/// Full change bytes for GetChange, sharing the sandbox envelope version policy.
332pub fn change_bytes(bytes: Vec<u8>) -> pb::VersionedBytes {

Callers 2

change_schemaFunction · 0.85
change_from_bundleFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected