This commit is contained in:
1 parent
c8ac4fcae5
commit
4cee170d66
17576 files changed
+895740
-2
No files matched your search
@@ -0,0 +1,11 @@
|
||||
module FFI
|
||||
class StructByReference[S < Struct[P, untyped], P < AbstractMemory]
|
||||
include DataConverter[P, S, untyped]
|
||||
attr_reader struct_class: Struct[P, untyped]
|
||||
|
||||
def initialize: (S struct_class) -> void
|
||||
def from_native: (P value, untyped ctx) -> S
|
||||
def native_type: () -> Type::Builtin
|
||||
def to_native: (S? value, untyped ctx) -> P
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user