// Automatically generated, do not edit! using System; using System.Runtime.InteropServices; internal static class Lib { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct MyString { /// u8* public IntPtr Data { get; init; } /// usize public nuint Length { get; init; } public MyString(IntPtr data, nuint length) { Data = data; Length = length; } } /// MyString /// void [DllImport("print_string.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint="print_string")] internal static extern void PrintString(MyString argument); /// MyString [DllImport("print_string.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint="create_string")] internal static extern MyString CreateString(); }