VarintBitConverterNet60 1.0.1

dotnet add package VarintBitConverterNet60 --version 1.0.1
NuGet\Install-Package VarintBitConverterNet60 -Version 1.0.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="VarintBitConverterNet60" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VarintBitConverterNet60 --version 1.0.1
#r "nuget: VarintBitConverterNet60, 1.0.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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
1.0.1 213 7/1/2022
1.0.0 171 7/1/2022

A port of the same utility made by Tomas for newer versions of .NET