Method: BinData::Buffer#do_read

Defined in:
lib/bindata/buffer.rb

#do_read(io) ⇒ Object

:nodoc:



89
90
91
92
93
# File 'lib/bindata/buffer.rb', line 89

def do_read(io) #:nodoc:
  io.with_buffer(eval_parameter(:length)) do
    @type.do_read(io)
  end
end