MCPcopy Create free account
hub / github.com/hashintel/hash / encode

Method encode

libs/@local/harpc/wire-protocol/src/payload.rs:54–59  ·  view source on GitHub ↗
(&self, buffer: &mut Buffer<B>)

Source from the content-addressed store, hash-verified

52 type Error = BytesEncodeError;
53
54 fn encode<B>(&self, buffer: &mut Buffer<B>) -> Result<(), Report<Self::Error>>
55 where
56 B: BufMut,
57 {
58 Bytes::encode(&self.0, buffer)
59 }
60}
61
62impl Decode for Payload {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected