class FFI::StructLayoutBuilder

def build

def build
  # Add tail padding if the struct is not packed
  size = @packed ? @size : align(@size, @alignment)
  
  layout = StructLayout.new(@fields, size, @alignment)
  layout.__union! if @union
  layout
end