Best approach to write / read binary data in Little or Big Endian with C #?

Well, if I have a binary encoded in either small endian or big endian under .NET, what is the best way to read / write it?

In the .NET platform, I managed to find BinaryWritters / BinaryReaders that use the default minimum end, so my approach implemented my own BinaryReader / BinaryWritter for reading / writing data in big endian format, but I wonder if there is a better aproach.

+3
source share
1 answer
+5
source

Source: https://habr.com/ru/post/1697028/


All Articles