JFLib

netpkt crate root#

  • fn be16(b: &[u8], off: usize) -> u16 the big-endian u16 at off (the caller has checked the length)

  • fn be32(b: &[u8], off: usize) -> u32 the big-endian u32 at off

  • fn put16(b: &mut [u8], off: usize, v: u16) writes a big-endian u16 at off

  • fn put32(b: &mut [u8], off: usize, v: u32) writes a big-endian u32 at off

Source: docs/API.md in the JFLib repository.