one that said "use this, it's already done," wins the prize. Thanks for your
"Jon Skeet [C# MVP]" wrote:
> PHil Coveney <PHilCoveney@discussions.microsoft.com> wrote:
> > 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?
>
> You could use my EndianBinaryWriter which allows you to specify
> endianness:
>
>
http://www.pobox.com/~skeet/csharp/miscutil
>
> --
> Jon Skeet - <skeet@pobox.com>
>
http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too