pub const fn write_head(
buf: &mut [u8],
major: Major,
arg: u64,
) -> Result<usize, Error>Expand description
Writes a complete head into buf and returns the number of bytes written.
ยงErrors
Returns Error::OUT_OF_SPACE when buf is shorter than
head_len for this argument.