pub fn encode_ops(
sender: NodeId,
session: LinkSessionId,
request: FetchOps,
operations: &[Operation<'_>],
metadata: &mut [u8],
payload: &mut [u8],
limits: WireLimits,
) -> Result<PrepareEncoding, WireError>Expand description
Encode complete canonical operations from the exact pinned request source.
Reuses verified body digests and caller buffers. Honors both request bounds and local wire limits; errors leave metadata and payload output unchanged. The serving adapter independently verifies the source pin and role lifetime.