Sha256: 100022b894506d7c733fcac37af2708c62a383a630398c92c5fc2048762ed4d6

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true
module Fiddle
  class Function
    # The ABI of the Function.
    attr_reader :abi

    # The address of this function
    attr_reader :ptr

    # The name of this function
    attr_reader :name

    # Whether GVL is needed to call this function
    def need_gvl?
      @need_gvl
    end

    # The integer memory location of this function
    def to_i
      ptr.to_i
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fiddle-1.0.8 lib/fiddle/function.rb
fiddle-1.0.7 lib/fiddle/function.rb
fiddle-1.0.6 lib/fiddle/function.rb
fiddle-1.0.5 lib/fiddle/function.rb
fiddle-1.0.4 lib/fiddle/function.rb