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

Function get_refs

crates/ixon/src/serialize.rs:803–810  ·  view source on GitHub ↗
(buf: &mut &[u8])

Source from the content-addressed store, hash-verified

801}
802
803impl Axiom {
804 pub fn put(&self, buf: &mut Vec<u8>) {
805 put_bool(self.is_unsafe, buf);
806 put_u64(self.lvls, buf);
807 put_expr(&self.typ, buf);
808 }
809
810 pub fn get(buf: &mut &[u8]) -> Result<Self, String> {
811 let is_unsafe = get_bool(buf)?;
812 let lvls = get_u64(buf)?;
813 let typ = get_expr(buf)?;

Callers 1

getMethod · 0.85

Calls 4

capped_capacityFunction · 0.85
pushMethod · 0.80
get_u64Function · 0.70
get_addressFunction · 0.70

Tested by

no test coverage detected