In Files

  • dl/lib/dl/pack.rb
  • dl/lib/dl/struct.rb

Methods

DL::PackInfo

Public Class Methods

align(addr, align) click to toggle source
 
               # File dl/lib/dl/pack.rb, line 97
def align(addr, align)
  d = addr % align
  if( d == 0 )
    addr
  else
    addr + (align - d)
  end
end