An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/sergeymakinen/go-bitrw

Package bitrw provides a reader and a writer providing the ability to read and write values bit-by-bit. Both the reader and the writer can read/write from 1 bit to multiple bytes with a bit precision and in a required bit order which can be LSB or MSB. Accepted and returned bytes are always expected to be in LSB order. When reading, the bits will be read from the lowest bit address to the highest bit address storing them as-is (i.e., the first 3 bits from 10011110 are 110, the following 3 bits are 011, and the remaining are 10). When writing, the bits will be interpreted as-is and written from the lowest bit address to the highest bit address (i.e., the 3 bits 110 will produce 00000110 stored in the cache, the following 3 bits 011 will update it to 00011110, and the 2 more bits 11 will update the cache to 11011110 and write to the underlying writer). When reading, the bits will be read from the highest bit address to the lowest bit address storing them reversed (i.e., the first 3 bits from 10011110 are 001, the following 3 bits are 111, and the remaining are 01). When writing, the bits will be interpreted reversed and written from the highest bit address to the lowest bit address (i.e., the 3 bits 110 will produce 01100000 stored in the cache, the following 3 bits 011 will update it to 01111000, and the 2 more bits 11 will update the cache to 01111011 and write to the underlying writer).

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/sergeymakinen/go-bitrw
License: BSD-3-Clause
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/sergeymakinen
Last synced: 24 days ago

    Loading...
    Readme
    Loading...