Method: BitStream#initialize_properties

Defined in:
lib/bitstream.rb

#initialize_properties(s, offset = 0) ⇒ Object



533
534
535
536
537
538
539
540
541
542
543
544
# File 'lib/bitstream.rb', line 533

def initialize_properties(s, offset = 0)
  props = Properties.new
  props.curr_offset = offset
  props.fields = {}
  props.raw_data = s
  props.initial_offset = offset
  props.eval_queue = Queue.new
  props.substreams = Hash.new do |hash, key|
    hash[key] = []
  end
  @bitstream_properties = props
end