361 362 363
# File 'lib/bindata/io.rb', line 361 def read(n) @io.read(n).tap { |data| @pos += (data&.size || 0) } end