io-binary
io-binary
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
- over 7 years ago
- August 23, 2017
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 22:04:15 GMT
Languages