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>)
| 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]> { |
no outgoing calls