Reading Big Endian Values
-
Hey, I am using a BinaryReader to read some Int16 values from a file. These values, however, are stored in big-endian format. I am sure there is a way to fix this issue programmatically, I'm just not sure how to go about doing it. So, how can I read a big-endian value from a file and get it to display correctly?
-
Hey, I am using a BinaryReader to read some Int16 values from a file. These values, however, are stored in big-endian format. I am sure there is a way to fix this issue programmatically, I'm just not sure how to go about doing it. So, how can I read a big-endian value from a file and get it to display correctly?
Just write a function that takes the Int16 values and converts them from big-endian to little-endian.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
-
Just write a function that takes the Int16 values and converts them from big-endian to little-endian.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus