io-binary

Version, currently master branch1 version
  • master branchlatestAug 23, 2017

github.com/taylorfinnell/io-binary

Bit level IO for Crystal

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  io-binary:
    github: taylorfinnell/io-binary
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.23.1
License
MIT
Author
Taylor Finnell

Dependencies

This version declares no dependencies.

README

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.