Registry / utility / dgryski-go-bitstream

dgryski-go-bitstream

JSON →
library0.0.0-20180413035011-3522498ce2c8gogounverified

A simple wrapper around io.Reader and io.Writer for bit-level access to streams.

go get github.com/dgryski/go-bitstream
INSTALL
IMPORT
SIG · DGRYSKI-GO-BITSTRE
D
dgryski-go-bitstream
utilitygov0.0.0-20180413035011-3522498ce2c8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bitstream
github.com/dgryski/go-bitstream

Write a single bit to a buffer

package main import ( "bytes" "fmt" "github.com/dgryski/go-bitstream" ) func main() { var buf bytes.Buffer bw := bitstream.NewWriter(&buf) bw.WriteBit(1) bw.Flush() fmt.Println(buf.Bytes()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180413035011-3522498ce2c8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
dgryski-go-bitstream — go get dgryski-go-bitstream · libregistry