Sha256: e7bc39b760864ce399a0ac9f888ec85ad22f98c6b84037c51140348a96485306
Contents?: true
Size: 888 Bytes
Versions: 1136
Compression:
Stored size: 888 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) -> void } -> self # https://github.com/ffi/ffi/issues/1071 | (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
1,136 entries across 1,136 versions & 14 rubygems