pub fn write_fixed<const N: usize>(
write: impl FnOnce(&mut SliceWriter<'_>) -> Result<(), CodecError>,
) -> [u8; N]Expand description
Zero-allocation helper for infallible fixed-size wire layouts (N bytes exact).
Verifies in both debug and release builds that write succeeds and fills all N bytes with
zero unused trailing space.