summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-arm64-darwin/sig/ffi/struct_by_reference.rbs
blob: 475b483e2818b63a4923b17d97fdf9d1f7e10a7a (plain)
1
2
3
4
5
6
7
8
9
10
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