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

Method put

crates/ixon/src/comm.rs:32–35  ·  view source on GitHub ↗

Serialize without tag header (for use within Env section serialization).

(&self, buf: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

30
31 /// Serialize without tag header (for use within Env section serialization).
32 pub fn put(&self, buf: &mut Vec<u8>) {
33 buf.extend_from_slice(self.secret.as_bytes());
34 buf.extend_from_slice(self.payload.as_bytes());
35 }
36
37 /// Deserialize without tag header (for use within Env section serialization).
38 pub fn get(buf: &mut &[u8]) -> Result<Self, String> {

Callers 2

put_taggedMethod · 0.45
comm_roundtripFunction · 0.45

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected