Closed pepijndevos closed 8 years ago
Looks good to me. But i'm thinking maybe you should make it more user friendly. Do two functions. read16 and read32. Thus negating the need to convert a byte array to an int or float.
The point is not just to read larger data types, but read whole arrays as well. IMO, a simple cast and a lot of flexibility outweighs the API clutter of having read/write functions for every possible data type.
gr8!
Very straightforward copy-paste of write that allows you to do something like