Extension methods for BinaryReader/BinaryWriter for switching byte endianness.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Binaries
BinaryEndiannessExtensions.Tests
BinaryEndiannessExtensions
.gitattributes
.gitignore
BinaryEndiannessExtensions.sln
LICENSE
README.md

README.md

BinaryEndiannessExtensions

Extension methods for BinaryReader/BinaryWriter for switching byte endianness.

What is it?

Overloaded extension methods for BinaryWriter.Writer and BinaryReader.ReadXXX that receive an additional boolean parameter that switches the endianness of the data when writing/reading.

The code doesn't have any dependencies and is currently distributed in binary form as a Portable Class Library compatible with .NET 4.5, Windows Phone 8+ and Windows 8+.

How to use

Install the package from NuGet: https://www.nuget.org/packages/BinaryEndiannessExtensions/

Alternatively, you can download the project and add it your solution or download one of the precompiled PCL libraries from the Binaries folder.