class BinData::BitAligned::BitAlignedIO
def initialize(io)
def initialize(io) @io = io end
def readbytes(n)
def readbytes(n) n.times.inject("") do |bytes, _| bytes += @io.readbits(8, :big).chr end end
def initialize(io) @io = io end
def readbytes(n) n.times.inject("") do |bytes, _| bytes += @io.readbits(8, :big).chr end end