VarintBitConverterNet60 1.0.1
dotnet add package VarintBitConverterNet60 --version 1.0.1
NuGet\Install-Package VarintBitConverterNet60 -Version 1.0.1
<PackageReference Include="VarintBitConverterNet60" Version="1.0.1" />
paket add VarintBitConverterNet60 --version 1.0.1
#r "nuget: VarintBitConverterNet60, 1.0.1"
// Install VarintBitConverterNet60 as a Cake Addin
#addin nuget:?package=VarintBitConverterNet60&version=1.0.1
// Install VarintBitConverterNet60 as a Cake Tool
#tool nuget:?package=VarintBitConverterNet60&version=1.0.1
About VarintBitConverter
System.VarintBitConverter is static utility class very similar to BitConverter (http://msdn.microsoft.com/en-us/library/system.bitconverter.aspx).
Varint is 128 base encoding for numbers (https://developers.google.com/protocol-buffers/docs/encoding#varints) used by Protocol Buffers and other projects. For signed numbers is using ZigZag encoding.
Usage:
- method GetBytes(...) converts .NET type to varint byte array.
- To...(byte[]) method convert varint byte array to .NET type
Requirements
- .NET Core 2.1 - .NET 7.0
License
Project is released under BSD license.
Small modifications were made to the project files to build in newer versions of .NET, old project is 10 years old. See: https://github.com/topas/VarintBitConverter for original repo.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. 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 is compatible. 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 | netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
-
.NETCoreApp 2.1
- No dependencies.
-
.NETCoreApp 2.2
- No dependencies.
-
.NETCoreApp 3.0
- No dependencies.
-
.NETCoreApp 3.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
A port of the same utility made by Tomas for newer versions of .NET