VarintBitConverter
Varint encoding and decoding for .NET
Install / Use
/learn @topas/VarintBitConverterREADME
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
Libraries & Tools
This project is using:
- xUnit testing library: http://xunit.codeplex.com/
- Psake build automation tool: https://github.com/JamesKovacs/psake
Requirements
- .NET Framework 4.0
- PowerShell for running Psake
License
Project is released under BSD license.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
