Sha256: 7070918d1f951c0ef076ce259438a59e73d9132bb199b225c7334652ca81508e

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: false
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

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
fiddle-1.0.0.beta1 lib/fiddle/function.rb
ruby-compiler-0.1.1 vendor/ruby/ext/fiddle/lib/fiddle/function.rb