View Single Post
Join Date: Jun 2007
Posts: 322
Reputation: Hamrick will become famous soon enough Hamrick will become famous soon enough 
Solved Threads: 33
Hamrick's Avatar
Hamrick Hamrick is offline Offline
Posting Whiz

Re: Big Endian float conversion

 
0
  #2
Aug 26th, 2007
1) Yeah, you can tell the BinaryReader what encoding to use with the System.Text.Encoding class.
  1. BinaryReader reader = new BinaryReader( stream, Encoding.BigEndianUnicode );
2) No, but you can use the System.BitConverter class to turn an array of bytes into whatever type it supports. And it supports both single and double precision floating point conversions.
The truth does not change according to our ability to stomach it.
Reply With Quote