MCPcopy Create free account
hub / github.com/QuipNetwork/xquad / EncodeOperand

Interface EncodeOperand

xqvm/src/bytecode/codec.rs:108–111  ·  view source on GitHub ↗

Append an operand field's wire bytes to `buf`. Used by the [`impl_codec!`] macro to assemble instruction payloads. Each operand type writes itself in big-endian order at its natural width.

Source from the content-addressed store, hash-verified

106/// Used by the [`impl_codec!`] macro to assemble instruction payloads. Each
107/// operand type writes itself in big-endian order at its natural width.
108trait EncodeOperand {
109 /// Append the wire bytes for `self` to `buf`.
110 fn encode_into(&self, buf: &mut Vec<u8>);
111}
112
113/// Read an operand field's wire bytes from the start of `bytes`.
114///

Callers

nothing calls this directly

Implementers 1

codec.rsxqvm/src/bytecode/codec.rs

Calls

no outgoing calls

Tested by

no test coverage detected