❔ [UnmanagedCallersOnly] with a function that takes a string
I'm trying to make a C# library, and had success with
but once I made it
It now fails to compile with:
I understand that it seems I can't use string as a type, but not sure what else to use?
char[]
and byte[]
also fails5 Replies
Span?
Or actual pointers
I'm not entirely bothered what type it is, but as long as it's a 'string' and something
ctypes
will let me use is idealI'm assuming you need something pretty close to plain pointer and length
probably yes
so it seems
IntPtr
works, but I don't know how to make it return something, because python can't use pointersWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.
Was this issue resolved? If so, run /close
- otherwise I will mark this as stale and this post will be archived until there is new activity.