# File lib/net/ssh/authentication/pageant.rb, line 188
188:       def read(n = nil)
189:         return nil unless @res
190:         if n.nil?
191:           start, @pos = @pos, @res.size
192:           return @res[start..-1]
193:         else
194:           start, @pos = @pos, @pos + n
195:           return @res[start, n]
196:         end
197:       end