pub fn sequential_hotline_wire(
base_transaction_id: impl Into<TransactionId>,
payloads: &[&[u8]],
) -> Vec<u8> ⓘExpand description
Encode multiple Hotline frames with incrementing transaction IDs.
The first frame carries base_transaction_id, the second
base_transaction_id + 1, and so on. Suitable for verifying frame
ordering or sequential correlation.
§Examples
use wireframe::codec::examples::HotlineFrameCodec;
use wireframe_testing::{decode_frames_with_codec, sequential_hotline_wire};
let wire = sequential_hotline_wire(10, &[b"x", b"y", b"z"]);
let codec = HotlineFrameCodec::new(4096);
let frames = decode_frames_with_codec(&codec, wire).expect("sequential fixtures should decode");
assert_eq!(frames.len(), 3);