Class: GirFFI::Builder::CArrayInOutArgument
- Inherits:
-
Argument::InOutBase
- Object
- Argument::Base
- Argument::InOutBase
- GirFFI::Builder::CArrayInOutArgument
- Defined in:
- lib/gir_ffi/builder/argument.rb
Overview
Implements argument processing for array arguments with direction :inout.
Constant Summary
Constants inherited from Argument::Base
Argument::Base::KEYWORDS, Argument::Base::TAG_TO_WRAPPER_CLASS_MAP
Instance Attribute Summary
Attributes inherited from Argument::Base
#array_arg, #length_arg, #name, #retname
Instance Method Summary collapse
Methods inherited from Argument::InOutBase
Methods inherited from Argument::Base
#argument_class_name, #array_size, #callarg, #cleanup, #elm_t, #inarg, #initialize, #post, #retval, #safe, #subtype_tag_or_class_name, #type_info, #type_tag
Constructor Details
This class inherits a constructor from GirFFI::Builder::Argument::InOutBase
Instance Method Details
#postpost ⇒ Object
325 326 327 328 329 |
# File 'lib/gir_ffi/builder/argument.rb', line 325 def postpost size = array_size pst = [ "#{retname} = #{callarg}.to_sized_array_value #{size}" ] pst end |
#pre ⇒ Object
321 322 323 |
# File 'lib/gir_ffi/builder/argument.rb', line 321 def pre [ "#{callarg} = GirFFI::InOutPointer.from_array #{elm_t}, #{@name}" ] end |