class BinData::IO::Read

def readbytes(n)

If the data read is too short an IOError is raised.

If the data read is nil an EOFError is raised.

Reads exactly +n+ bytes from +io+.
def readbytes(n)
  reset_read_bits
  read(n)
end