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
- about 7 years ago
- August 23, 2017
License
MIT License
Links
Synced at
Mon, 18 Nov 2024 04:35:27 GMT
Languages