G
Guest
Hello,
I need to support a file format that stores integers with the MSB first
and the LSB last. When I use
BinaryWriter aWriter = new BinaryWriter(aFileStream, Encoding.ASCII);
int someValue = 1;
aWriter.WriteInt32(someValue);
the byte stream that appears in the file is
01 00 00 00
What I need for this file format is
00 00 00 01
There does not appear to be anything in Marshal that supports this. Does
anyone have a recommendation?
Thanks in advance,
I need to support a file format that stores integers with the MSB first
and the LSB last. When I use
BinaryWriter aWriter = new BinaryWriter(aFileStream, Encoding.ASCII);
int someValue = 1;
aWriter.WriteInt32(someValue);
the byte stream that appears in the file is
01 00 00 00
What I need for this file format is
00 00 00 01
There does not appear to be anything in Marshal that supports this. Does
anyone have a recommendation?
Thanks in advance,