Method: BinData::Buffer#do_read

Defined in:
lib/bindata/buffer.rb

#do_read(io) ⇒ Object

:nodoc:



85
86
87
88
89
# File 'lib/bindata/buffer.rb', line 85

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