Function py_parse_u16

Source
pub fn py_parse_u16<'_py>(
    stream: Bound<'_py, PyBytes>,
    start_pos: usize,
) -> (u16, usize)
Expand description

Parse an u16 from python bytes.

ยงArguments:

  • stream (bytes) : parse the number from this stream
  • start_pos (int) : begin parsing at this position