module FFI::BitStruct::BitFieldsModule

Public Instance Methods

[](name) click to toggle source
Calls superclass method
# File lib/hts/libhts.rb, line 67
def [](name)
  bit_fields = self.class.bit_fields_hash_table
  parent, start, width = bit_fields[name]
  if parent
    (super(parent) >> start) & ((1 << width) - 1)
  else
    super(name)
  end
end