class BinData::BitAligned::BitAlignedIO
def initialize(io)
def initialize(io) @io = io end
def method_missing(sym, *args, &block)
def method_missing(sym, *args, &block) @io.send(sym, *args, &block) end
def readbytes(n)
def readbytes(n) n.times.inject("") do |bytes, i| bytes << @io.readbits(8, :big).chr end end