コード例 #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());
        }
コード例 #2
0
ファイル: Std.cs プロジェクト: sekkit/CppSharp
        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());
        }
コード例 #3
0
ファイル: Std.cs プロジェクト: randyammar/CppSharp
 private Allocator(global::Std.Allocator.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
コード例 #4
0
ファイル: Std.cs プロジェクト: randyammar/CppSharp
 internal static global::Std.Allocator __CreateInstance(global::Std.Allocator.__Internal native, bool skipVTables = false)
 {
     return new global::Std.Allocator(native, skipVTables);
 }
コード例 #5
0
ファイル: Std.cs プロジェクト: embtest/CppSharp
 internal static Allocator <_Tp> __CreateInstance(global::Std.Allocator.__Internal native, bool skipVTables = false)
 {
     return(new Allocator <_Tp>(native, skipVTables));
 }