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.
Width | Range | Name |
---|---|---|
1 | 0-1 | Bit |
2 | 0-3 | Crumb |
3 | 0-7 | Note |
4 | 0-15 | Nibble |
5 | 0-31 | Flake |
6 | 0-63 | Morsel |
7 | 0-127 | Shred |