Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • dl/lib/dl/struct.rb

DL::Importable::Internal::Union

Public Instance Methods

new() click to toggle source
 
               # File dl/lib/dl/struct.rb, line 139
def new
  ptr = DL::malloc(@size)
  ptr.union!(@tys, *@names)
  mem = Memory.new(ptr, @names, @ty, @len, @enc, @dec)
  return mem
end