Sha256: 1945cf87f82304e436144a4caae514c352a06e1b573a7891daa8adb41d7aa34a

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

module GirFFI
  module Builder
    module Argument
      # Abstract base class implementing argument processing for arguments
      # with direction :out.
      class OutBase < Base
        def prepare
          @name = safe(@arginfo.name)
        end

        def callarg
          @callarg ||= @function_builder.new_var
        end

        def retname
          @retname ||= @function_builder.new_var
        end

        def pre
          [ "#{callarg} = GirFFI::InOutPointer.for #{base_type.inspect}" ]
        end
      end
    end
  end
end


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.1.0 lib/gir_ffi/builder/argument/out_base.rb
gir_ffi-0.0.14 lib/gir_ffi/builder/argument/out_base.rb
gir_ffi-0.0.13 lib/gir_ffi/builder/argument/out_base.rb
gir_ffi-0.0.12 lib/gir_ffi/builder/argument/out_base.rb
gir_ffi-0.0.11 lib/gir_ffi/builder/argument/out_base.rb