pub fn encode_frame(kind: FrameKind, header: &[u8]) -> Vec<u8> ⓘ
Builds a complete header-only frame: preamble followed by header.
header