Skip to main content

put_u16

Function put_u16 

Source
pub fn put_u16(payload: &mut [u8], off: usize, v: u16) -> Option<()>
Expand description

Write a u16 at offset off (little-endian).

Returns None if the write would overflow the payload.