class BitStream::NestWrapper

Public Class Methods

new(type, inherited_props, user_props) click to toggle source
# File lib/bitstream.rb, line 95
def initialize(type, inherited_props, user_props)
  @type = type
  # TODO: Implement priority between the properties.
  @props = user_props.merge(inherited_props)
end

Public Instance Methods

length() click to toggle source
# File lib/bitstream.rb, line 101
def length
  # TODO: Implement me.
  nil
end
read(s, offset) click to toggle source
# File lib/bitstream.rb, line 106
def read(s, offset)
  instance = @type.create_with_offset(s, offset, @props)
  return FieldInfo.new(instance, instance.length)
end