io-binary

Bit level IO for Crystal

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.

Repository

io-binary

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 7 years ago
  • August 23, 2017
License

MIT License

Links
Synced at

Sun, 15 Sep 2024 16:02:17 GMT

Languages