Sha256: ab8d16be0e15294315652824a66c9b9e3374df2552fb27d0e51b623622324d57

Contents?: true

Size: 782 Bytes

Versions: 67

Compression:

Stored size: 782 Bytes

Contents

module FFI
  class AutoPointer < Pointer
    class Releaser
      attr_accessor autorelease: boolish
      interface _Proc[P < Pointer]
        def call: (P) -> void
      end
      def initialize: [P < Pointer] (P ptr, _Proc[P] proc) -> void

      def call: (*untyped) -> void
      def free: () -> nil
      def release: (Pointer ptr) -> void
    end

    def initialize: (Pointer pointer, Method | ^(self) -> void | Releaser::_Proc[self] callable) -> self
                  | (Pointer pointer) -> self # where class < `def self.release: (instance pointer) -> void`

    extend DataConverter[Pointer, instance, nil]
    def self.from_native: ...
    def self.native_type: () -> Type::Builtin

    def autorelease?: ...
    def autorelease=: ...
    def free: () -> nil
  end
end

Version data entries

67 entries across 67 versions & 5 rubygems

Version Path
ffi-1.17.1-x86_64-linux-musl sig/ffi/auto_pointer.rbs
ffi-1.17.1-x86_64-linux-gnu sig/ffi/auto_pointer.rbs
ffi-1.17.1-x86-linux-musl sig/ffi/auto_pointer.rbs
ffi-1.17.1-x86-linux-gnu sig/ffi/auto_pointer.rbs
ffi-1.17.1-x64-mingw32 sig/ffi/auto_pointer.rbs
ffi-1.17.1-x64-mingw-ucrt sig/ffi/auto_pointer.rbs
ffi-1.17.1-x86-mingw32 sig/ffi/auto_pointer.rbs