summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.4-arm64-darwin/sig/ffi.rbs
diff options
context:
space:
mode:
authorBen Sanders <ben@sanders.life>2026-08-02 09:49:25 -0400
committerBen Sanders <ben@sanders.life>2026-08-02 09:49:25 -0400
commitb41479c91e6685511c1f8ba8586106b322073b62 (patch)
treec9f1345999d754ae0a533849966427e792d9e68d /vendor/bundle/ruby/3.4.0/gems/ffi-1.17.4-arm64-darwin/sig/ffi.rbs
parentcfaceeb9a6d1295f5754be211858155cd309acc2 (diff)
added statscounter code
Diffstat (limited to 'vendor/bundle/ruby/3.4.0/gems/ffi-1.17.4-arm64-darwin/sig/ffi.rbs')
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/ffi-1.17.4-arm64-darwin/sig/ffi.rbs29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.4-arm64-darwin/sig/ffi.rbs b/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.4-arm64-darwin/sig/ffi.rbs
new file mode 100644
index 0000000..6cba15f
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.4-arm64-darwin/sig/ffi.rbs
@@ -0,0 +1,29 @@
+module FFI
+ type ffi_type = Type | Symbol
+ type ffi_auto_type = ffi_type | DataConverter[untyped, untyped, untyped]
+ type type_map = Hash[Symbol | DataConverter[untyped, untyped, untyped], Type]
+
+ class CallbackInfo = FunctionType
+ class FunctionInfo = FunctionType
+ class NativeLibrary = DynamicLibrary
+
+ VERSION: String
+ TypeDefs: type_map
+
+ type current_process = Object
+ CURRENT_PROCESS: current_process
+ USE_THIS_PROCESS_AS_LIBRARY: current_process
+
+ class NotFoundError < LoadError
+ end
+
+ private def self.custom_typedefs: () -> type_map
+ def self.errno: () -> Integer
+ def self.errno=: (Integer) -> Integer
+ def self.find_type: (ffi_auto_type name, ?type_map? type_map) -> Type
+ def self.make_shareable: [T] (T obj) -> T
+ def self.map_library_name: (_ToS lib) -> String
+ def self.type_size: (ffi_auto_type type) -> Integer
+ def self.typedef: (ffi_auto_type old, Symbol add) -> Type
+ alias self.add_typedef self.typedef
+end