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

Function change_bundle

libatomic/src/daemon/sandbox_wire.rs:308–314  ·  view source on GitHub ↗
(hash: &Hash, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

306}
307
308pub fn change_bundle(hash: &Hash, bytes: Vec<u8>) -> pb::ChangeBundle {
309 pb::ChangeBundle {
310 hash: Some(hash_proto(hash)),
311 schema: CHANGE_SCHEMA.to_string(),
312 payload: bytes,
313 }
314}
315
316/// A bundle's hash and V3 bytes. An empty schema reads as V3.
317pub fn change_from_bundle(bundle: &pb::ChangeBundle) -> Result<(Hash, Vec<u8>), String> {

Callers 5

submitMethod · 0.85
get_changesMethod · 0.85
submitMethod · 0.85

Calls 1

hash_protoFunction · 0.70