Files

Class/Module Index [+]

Quicksearch

BinData::InitialLengthPlugin

Logic for the :initial_length parameter

Public Instance Methods

do_read(io) click to toggle source
# File lib/bindata/array.rb, line 326
def do_read(io)
  elements.each { |el| el.do_read(io) }
end
elements() click to toggle source
# File lib/bindata/array.rb, line 330
def elements
  if @element_list.nil?
    @element_list = []
    eval_parameter(:initial_length).times do
      @element_list << new_element
    end
  end

  @element_list
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.