class FFI::StructLayoutBuilder

def packed=(packed)

Returns:
  • (0, 1) -
  • (packed) -

Parameters:
  • packed () --
  • packed (Fixnum) --

Overloads:
  • packed=(packed) Set packed attribute.
  • packed=(packed) Set alignment and packed attributes to
def packed=(packed)
  if packed.is_a?(0.class)
    @alignment = packed
    @packed = packed
  else
    @packed = packed ? 1 : 0
  end
end