class

Bindgen::Call::OutArgument

Inherits Bindgen::Call::Argument < Bindgen::Call::Expression < Reference < Object

An out argument, see Parser::Method#out_arguments: the caller passes a pointer to a local variable, local, which the callee writes through. The prologue declares the local, before the call, and the epilogue hands its value back after it; either is nil where another part of the body does so, like the TupleResult of a Crystal wrapper. An in_out argument, a C++ reference, is initialized from the argument's value; an out-only one, a C++ pointer, isn't passed by the caller at all.

Constructors

new(type, type_name, name, call, in_out : Bool, local : String, prologue : Nil | String = nil, epilogue : Nil | String = nil, reference = false, pointer = 1, default_value = nil, nilable = false)
Source

Class methods

local_name(name : String) : String

Name of the local variable of the argument name.

Source

Instance methods

epilogue
Source
in_out?
Source
local
Source
prologue
Source