MCPcopy Create free account
hub / github.com/argumentcomputer/ix / put_rules

Function put_rules

crates/ixon/src/proof.rs:401–406  ·  view source on GitHub ↗
(rules: &[RevealRecursorRule], buf: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

399 Tag0::new(self.rule_idx).put(buf);
400 Tag0::new(self.fields).put(buf);
401 buf.extend_from_slice(self.rhs.as_bytes());
402 }
403
404 pub fn get(buf: &mut &[u8]) -> Result<Self, String> {
405 let rule_idx = Tag0::get(buf)?.size;
406 let fields = Tag0::get(buf)?.size;
407 let rhs = get_address(buf)?;
408 Ok(RevealRecursorRule { rule_idx, fields, rhs })
409 }

Callers 1

putMethod · 0.85

Calls 2

putMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected