Пример #1
0
        private static void *__CopyValue(ModuleDescription.Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(ModuleDescription.Internal));

            *(ModuleDescription.Internal *)ret = native;
            return(ret.ToPointer());
        }
Пример #2
0
 private ModuleDescription(ModuleDescription.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[NativeReference] = this;
 }
Пример #3
0
 internal static ModuleDescription __CreateInstance(ModuleDescription.Internal native, bool skipVTables = false)
 {
     return(new ModuleDescription(native, skipVTables));
 }