Method: Fiddle::CStructEntity.alignment
- Defined in:
- lib/fiddle/struct.rb
.alignment(types) ⇒ Object
277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'lib/fiddle/struct.rb', line 277 def CStructEntity.alignment(types) max = 1 types.each do |type, count = 1| if type.respond_to?(:entity_class) n = type.alignment else n = ALIGN_MAP[type] end max = n if n > max end max end |