Sha256: 65524bcf2d69e3f7053aa476286f011f0523c6efe0ea6f5f3c373d9a9a2de5aa

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 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

    # 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.3 lib/fiddle/function.rb
fiddle-1.0.2 lib/fiddle/function.rb
fiddle-1.0.1 lib/fiddle/function.rb
fiddle-1.0.0 lib/fiddle/function.rb
fiddle-1.0.0.beta2 lib/fiddle/function.rb