# File lib/ffi/library.rb, line 265 def function_names(name, arg_types) result = [name.to_s] if ffi_convention == :stdcall # Get the size of each parameter size = arg_types.inject(0) do |mem, arg| mem + arg.size end # Next, the size must be a multiple of 4 size += (4 - size) % 4 result << "_#{name.to_s}@#{size}" # win32 result << "#{name.to_s}@#{size}" # win64 end result end