|
|
|
|
|
by antaviana
2845 days ago
|
|
I did not find a trivial way to go from the Vec<u8> returned by read_to_end to some kind of u16 container. Everything I found in Google involved unsafe code. Probably a function read_to_end returning a Vec<u16> would have been great. |
|
I'm sure there's a package that makes this easy, but this took me about ten minutes to toss together from scratch.