# File lib/protocols/postgres.rb, line 108
108:   def readbytes(n)
109:     str = read(n)
110:     if str == nil
111:       raise EOFError, "End of file reached"
112:     end
113:     if str.size < n
114:       raise TruncatedDataError.new("data truncated", str) 
115:     end
116:     str
117:   end