Beispiel #1
0
        internal static GType Register(string name, UnmanagedBoxedCopyFunc boxedCopy, UnmanagedBoxedFreeFunc boxedFree)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }
            if (boxedCopy == null)
            {
                throw new ArgumentNullException(nameof(boxedCopy));
            }
            if (boxedFree == null)
            {
                throw new ArgumentNullException(nameof(boxedFree));
            }
            var name_ = GMarshal.StringToUtf8Ptr(name);

            return(g_boxed_type_register_static(name_, boxedCopy, boxedFree));
        }
Beispiel #2
0
 static extern GType g_boxed_type_register_static(IntPtr name,
                                                  UnmanagedBoxedCopyFunc boxedCopy,
                                                  UnmanagedBoxedFreeFunc boxedFree);