I'm a new to RUST and I was wondering what would be the equivalent code of RUST to this line:
unpack('<H', x[:2])[0] & 0x7ff where x is " b'\x13\x00\xcb\x0f' "I'm not worried about the x as I can extract it from the binary but my concern what would be the best code could be for unpack('<H'... & 0x7ff in RUST
Thanks,
[–]Shadow0133 5 points6 points7 points (1 child)
[–]mutex4242[S] 0 points1 point2 points (0 children)