pub fn write(
output: &mut impl Write,
tag: u8,
payload: &[u8],
limit: NonZeroU32,
) -> Result<()>Expand description
Write a tag and payload, validating their combined size before any output.
ยงErrors
Refuses a size overflow or a frame above the limit before writing; propagates output and flush failures.