class GirFFI::Builder::RegularInOutArgument

Implements argument processing for arguments with direction :inout that are neither arrays nor ‘interfaces’.

Public Instance Methods

post() click to toggle source
# File lib/gir_ffi/builder/argument.rb, line 409
def post
  [ "#{retname} = #{callarg}.to_value" ]
end
pre() click to toggle source
# File lib/gir_ffi/builder/argument.rb, line 400
def pre
  pr = []
  if @array_arg
    pr << "#{@name} = #{@array_arg.name}.length"
  end
  pr << "#{callarg} = GirFFI::InOutPointer.from #{type_tag.inspect}, #{@name}"
  pr
end