MacroMu.Binary 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MacroMu.Binary --version 1.0.0
NuGet\Install-Package MacroMu.Binary -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MacroMu.Binary" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MacroMu.Binary --version 1.0.0
#r "nuget: MacroMu.Binary, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MacroMu.Binary as a Cake Addin
#addin nuget:?package=MacroMu.Binary&version=1.0.0

// Install MacroMu.Binary as a Cake Tool
#tool nuget:?package=MacroMu.Binary&version=1.0.0

MacroMu.Binary

This package contains extension methods to work with numerics that need to be treated as bits/bytes/byte[]s

The endianness of the operations is set on the static helper class and based on the current system's endianness.

Specific data type support

bool - .GetBitValue(...)

  • byte

bool[][] - .GetBitValues(...)

  • byte / byte[]
  • ushort
  • uint
  • ulong

byte[] - .GetBytes()

  • short / ushort
  • int / uint
  • long / ulong

byte[] - .GetReversedEndianBytes()

  • byte[]
  • ushort
  • uint
  • ulong

byte[] - .ReplaceBytes(...)

  • byte[]

byte - .SetBitValue(...)

  • byte

byte[] - .SetDoubleWord(...)

  • byte[]

byte[] - .SetWord(...)

  • byte[]
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MacroMu.Binary:

Package Downloads
MacroMu.IO.EthernetIP

Contains EthernetIP/IP CIP and EIP thernet/IP modleedels; Work in progress.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 129 10/3/2023
1.0.1 381 1/21/2023
1.0.0 269 1/14/2023

Initial release with validated unit testing completed.