Skip to content

taylorfinnell/io-binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

io-binary

CircleCI

An IO implementation that supports bit level reading.

Installation

Add this to your application's shard.yml:

dependencies:
  io-binary:
    github: taylorfinnell/io-binary

Usage

require "io-binary"

io = IO::Binary.new(Bytes.new(1, 3.to_u8)) # single byte of value 3

io.read_bit # => 1
io.read_bit # => 1
io.read_bit # => 0

Limits

Does not implement IO#write.

About

Bit level IO for Crystal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published