pub fn encode_flow_prepare(
context: EncodeContext,
epoch: ReceiveEpoch,
prepare: Prepare<'_>,
metadata: &mut [u8],
payload: &mut [u8],
) -> Result<PrepareEncoding, WireError>Expand description
Encode epoch-bound normal data with a mandatory receiver-issued epoch.
Distinct PREPARE_FLOW bytes prevent silent mixing with legacy PREPARE schemas.
Adds exactly 16 metadata bytes per batch. Canonical identities/body digests
are unchanged, and no additional body hashing or allocation is performed.