pub fn parse_string<T: AsRef<[u8]>>(stream: &T, pos: &mut usize) -> String
Expand description
Get a string from a bytestream and advance a position marker
Warning, this is unsafe and might fail. It also expects that the string is perfixed with a u16 containing its size.
ยงArguments
- bs : Serialized data, stream of bytes
- pos : Position marker - start postion of the deserialization