123456789_123456789_123456789_123456789_123456789_

Module: Fiddle::PackInfo

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: ext/fiddle/lib/fiddle/pack.rb

Constant Summary

Class Method Summary

Class Method Details

.align(addr, align) (mod_func)

[ GitHub ]

  
# File 'ext/fiddle/lib/fiddle/pack.rb', line 55

def align(addr, align)
  d = addr % align
  if( d == 0 )
    addr
  else
    addr + (align - d)
  end
end