NullFX.CRC 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package NullFX.CRC --version 1.1.1
NuGet\Install-Package NullFX.CRC -Version 1.1.1
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="NullFX.CRC" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NullFX.CRC --version 1.1.1
#r "nuget: NullFX.CRC, 1.1.1"
#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 NullFX.CRC as a Cake Addin
#addin nuget:?package=NullFX.CRC&version=1.1.1

// Install NullFX.CRC as a Cake Tool
#tool nuget:?package=NullFX.CRC&version=1.1.1

NullFX CRC Build Status Quality Gate Status

NullFX CRC is a small set of CRC utilities written in native C# released under the MIT License

NuGet:

GitHub Package Page

NuGet.org Package Page

Install

dotnet add PROJECT package NullFX.CRC --version 1.1.1

Examples:

Each CRC library uses a common ComputeChecksum format. It accepts a byte array which can be computed by converting text / numbers / structures etc into an array, then passing it into ComputeChecksum for it's CRC.

// using text
var text = "I am string content";
// convert text to a byte array
var textBuffer = System.Text.Encoding.UTF8.GetBytes ( text );

// get the CRC for the text
var textCrc = NullFX.CRC.Crc32.ComputeChecksum ( textBuffer );
Console.WriteLine ( "Text CRC: {0:X8}", textCrc );


// use a large number
var aNumber = 0xDEADBEEF;
// convert that to a byte array
var numberBuffer = System.BitConverter.GetBytes ( aNumber );

// get the CRC for the number
var numberCrc = NullFX.CRC.Crc32.ComputeChecksum ( numberBuffer );
Console.WriteLine ( "Number CRC: {0:X8}", numberCrc );


// bytes as params
var randomCrc = NullFX.CRC.Crc32.ComputeChecksum ( 0x01, 0x02, 0x03, 0x04 );
Console.WriteLine ( "Random bytes CRC: {0:X8}", randomCrc );


// checksum of a subset of the array
var bytes = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
var segmentedBytesCrc = NullFX.CRC.Crc32.ComputeChecksum ( bytes, 2, 4 );
Console.WriteLine ( "Segment of bytes CRC: {0:X8}", segmentedBytesCrc );

output:

Text CRC: 3AD00FD2
Number CRC: 1A5A601F
Random bytes CRC: B63CFBCD
Segment of bytes CRC: A0EC895E

this repository is also mirrored on GitLab and BitBucket just in case the new evil overlords kill off the greatness of github...

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on NullFX.CRC:

Package Downloads
TwitterStream

Stream twits without twitter api

rct

Library to talk with rct power inverters

Com.Ve.ServerDataReceiver

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.10 23,519 10/9/2023
1.1.9 110 10/9/2023
1.1.8 16,797 7/7/2023
1.1.7 9,684 3/22/2023
1.1.6 6,711 2/8/2023
1.1.5 6,717 7/12/2022
1.1.4 4,791 4/30/2022
1.1.3 202,753 11/4/2021
1.1.2 4,265 5/7/2021
1.1.1 4,900 9/17/2020
1.0.1 40,651 2/23/2018
1.0.0 1,516 11/3/2017