Hi,
Im trying to cast a 4 byte array to an ulong in C#. I'm currently using this code:
atomSize = BitConverter.ToUInt32(buffer, 0);
The byte[4] contians this:
0 0 0 32
However, the bytes are big-endian. Is there a simple way to convert this big-endian ulong to a little-endian ulong?