Module parse

Source
Expand description

Faster parsers using nom.

Functionsยง

be_i16_smart
be_u16_smart but as i16.
be_u16_smart
Reads 1 byte if the first byte < 128, reads 2 bytes otherwise.
be_u32_smart
Reads 2 bytes if the first byte <= -1 after calculations, reads 4 bytes otherwise.
be_u32_smart_compat
rs_string
Reads a 0-terminated string from the given buffer. Uses String::from_utf8_lossy() for the conversion.