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

Method set_v3_bytes

atomic-repository/src/record/assemble.rs:380–382  ·  view source on GitHub ↗

Store the original V3 serialized bytes for hash-stable saving. Called by `Repository::record()` after the first `serialize()` call. These bytes are later written directly to disk by `save_change_bytes()` to avoid the hash mismatch caused by re-serialization.

(&mut self, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

378 /// These bytes are later written directly to disk by `save_change_bytes()`
379 /// to avoid the hash mismatch caused by re-serialization.
380 pub fn set_v3_bytes(&mut self, bytes: Vec<u8>) {
381 self.v3_bytes = Some(bytes);
382 }
383
384 /// Get the original V3 bytes, if stored.
385 pub fn v3_bytes(&self) -> Option<&[u8]> {

Callers 3

require_dependencyFunction · 0.80
record_with_lifecycleMethod · 0.80

Calls

no outgoing calls

Tested by 1