MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / to_bytes

Method to_bytes

ipc/api/src/address.rs:40–42  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

38 /// Returns encoded bytes of Address
39 #[cfg(feature = "fil-actor")]
40 pub fn to_bytes(&self) -> Result<Vec<u8>, Error> {
41 Ok(fil_actors_runtime::cbor::serialize(self, "ipc-address")?.to_vec())
42 }
43
44 #[cfg(feature = "fil-actor")]
45 pub fn from_bytes(bz: &[u8]) -> Result<Self, Error> {

Callers 1

test_ipc_serializationFunction · 0.45

Calls 2

to_vecMethod · 0.80
serializeFunction · 0.50

Tested by 1

test_ipc_serializationFunction · 0.36