I'm using Nom to parse a binary data, at some point I have list of utf-8 or utf-16 strings controlled by a flag, each string ends with 0x00 0x00 and the first byte or two is length of the string.
How can I work with such strings with Rust?
I think there is no built-in support for utf-16.