# File lib/facets/more/binaryreader.rb, line 192
  def readn(n)
    str = read(n)
    raise "couldn't read #{n} characters" if str.nil? or str.size != n
    str
  end