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

Method put_loss_note

atomic-core/src/operation/codec.rs:683–692  ·  view source on GitHub ↗
(&mut self, note: &OperationLossNote)

Source from the content-addressed store, hash-verified

681 }
682
683 fn put_loss_note(&mut self, note: &OperationLossNote) -> Result<(), OperationCodecError> {
684 ensure_strictly_sorted(&note.evidence, "loss-note evidence")?;
685 self.put_string(&note.code, "loss-note code")?;
686 self.put_string(&note.message, "loss-note message")?;
687 self.put_count(note.evidence.len(), "loss-note evidence")?;
688 for evidence in &note.evidence {
689 self.put_hash(*evidence)?;
690 }
691 Ok(())
692 }
693
694 fn put_effect_plan(&mut self, effect: &EffectPlan) -> Result<(), OperationCodecError> {
695 self.put_u32(effect.ordinal)?;

Callers 1

encode_operation_payloadFunction · 0.80

Calls 5

ensure_strictly_sortedFunction · 0.85
put_stringMethod · 0.80
put_countMethod · 0.80
put_hashMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected