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

            *(global::Std.Allocator.__Internal *)ret = native;
            return(ret.ToPointer());
        }
Example #2
0
        private static void *__CopyValue(global::Std.Allocator.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal));

            global::Std.Allocator.__Internal.cctorc__N_std_S_allocator__C(ret, new global::System.IntPtr(&native));
            return(ret.ToPointer());
        }
Example #3
0
 private Allocator(global::Std.Allocator.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Example #4
0
 internal static global::Std.Allocator __CreateInstance(global::Std.Allocator.__Internal native, bool skipVTables = false)
 {
     return new global::Std.Allocator(native, skipVTables);
 }
Example #5
0
 internal static Allocator <_Tp> __CreateInstance(global::Std.Allocator.__Internal native, bool skipVTables = false)
 {
     return(new Allocator <_Tp>(native, skipVTables));
 }