Info
| Version: | 2.2.0 |
| Author(s): | Tedd Hansen |
| Last Update: | Sunday, September 20, 2026 |
| .NET Fiddle: | Create the first Fiddle |
| Project Url: | https://github.com/tedd/Tedd.BitUtils |
| NuGet Url: | https://www.nuget.org/packages/Tedd.BitUtils |
Install
Install-Package Tedd.BitUtils
dotnet add package Tedd.BitUtils
paket add Tedd.BitUtils
Tedd.BitUtils Download (Unzip the "nupkg" after downloading)
Dependencies
net461
No dependencies.
No dependencies.
No dependencies.
No dependencies.
No dependencies.
No dependencies.
No dependencies.
No dependencies.
Tags
Backed by System.Numerics.BitOperations and hardware intrinsics (POPCNT, LZCNT, TZCNT, BMI1, BMI2, BSWAP, ARM RBIT) with automatic runtime fallback. Also includes an allocation-free bit packing layer over Span<byte>: BitPacking/BitWriter/BitReader for arbitrary width bit fields at any bit offset, and the variable length integer encodings built on them - VarInt (ULEB128, SLEB128, ZigZag), EbmlVInt (RFC 8794) and SizePrefix.