Categorygithub.com/ignite-laboratories/tiny
repositorypackage
1.3.4
Repository: https://github.com/ignite-laboratories/tiny.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Tiny

A very simplistic helper package for working at the bit level in Go.


The goal of Tiny is to allow easy bit level manipulation of odd-length binary information. Synthesizing random strings of binary data, for example, is not a common operation - but one that the language is quite good at.

The central pillar of Tiny is the Measure object. This represents a container of bytes and bits that can easily be manipulated.

In addition to this, a suite of constants and helper functions to work with SubByte numbers is included. To make it easier, I fleshed out the complete range of binary ranges with fitting terms.

WidthRangeName
10-1Bit
20-3Crumb
30-7Note
40-15Nibble
50-31Flake
60-63Morsel
70-127Shred