Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
/ bitstream Public archive

A Go package to support reading and writing of variable-width binary values to or from a stream of bytes.

License

Notifications You must be signed in to change notification settings

creachadair/bitstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitstream

GoDoc

Package bitstream is a library for reading and writing streams of bits.

A bitstream.Reader supports reading variable-width bit fields sequentially out of a stream of bytes supplied by an io.Reader.

A bitstream.Writer supports writing variable-width bit fields sequentially to a stream of bytes consumed by an io.Writer.

These types are useful for processing data that are not divided on even byte boundaries, such as compressed or bit-packed data. This package only supports sequential processing, not random-access.

Bit values are exchanged as uint64 values, with the data packed into the low-order bits of the word.

About

A Go package to support reading and writing of variable-width binary values to or from a stream of bytes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages