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

Function get_univs

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

Source from the content-addressed store, hash-verified

817
818impl Quotient {
819 pub fn put(&self, buf: &mut Vec<u8>) {
820 self.kind.put_ser(buf);
821 put_u64(self.lvls, buf);
822 put_expr(&self.typ, buf);
823 }
824
825 pub fn get(buf: &mut &[u8]) -> Result<Self, String> {
826 let kind = QuotKind::get_ser(buf)?;
827 let lvls = get_u64(buf)?;
828 let typ = get_expr(buf)?;
829 Ok(Quotient { kind, lvls, typ })

Callers 1

getMethod · 0.85

Calls 4

capped_capacityFunction · 0.85
get_univFunction · 0.85
pushMethod · 0.80
get_u64Function · 0.70

Tested by

no test coverage detected