示例#1
0
        private static void *__CopyValue(global::osu.Desktop.Updater.Std.Allocator.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(global::osu.Desktop.Updater.Std.Allocator.__Internal));

            *(global::osu.Desktop.Updater.Std.Allocator.__Internal *)ret = native;
            return(ret.ToPointer());
        }
示例#2
0
 private Allocator(global::osu.Desktop.Updater.Std.Allocator.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
示例#3
0
 internal static global::osu.Desktop.Updater.Std.Allocator <_Tp> __CreateInstance(global::osu.Desktop.Updater.Std.Allocator.__Internal native, bool skipVTables = false)
 {
     return(new global::osu.Desktop.Updater.Std.Allocator <_Tp>(native, skipVTables));
 }