Exemplo n.º 1
0
 public unsafe INativeParameterInfoStruct Wrap(Il2CppParameterInfo *paramInfoPointer)
 {
     if ((IntPtr)paramInfoPointer == IntPtr.Zero)
     {
         return(null);
     }
     else
     {
         return(new NativeParameterInfoStructWrapper((IntPtr)paramInfoPointer));
     }
 }
Exemplo n.º 2
0
 public unsafe INativeParameterInfoStruct Wrap(Il2CppParameterInfo *paramInfoListBegin, int index)
 {
     if ((IntPtr)paramInfoListBegin == IntPtr.Zero)
     {
         return(null);
     }
     else
     {
         return(new NativeParameterInfoStructWrapper((IntPtr)paramInfoListBegin + (Marshal.SizeOf <Il2CppParameterInfo_24_1>() * index)));
     }
 }
Exemplo n.º 3
0
        public unsafe Il2CppParameterInfo *[] CreateNewParameterInfoArray(int paramCount)
        {
            var ptr = (Il2CppParameterInfo_24_1 *)Marshal.AllocHGlobal(Marshal.SizeOf <Il2CppParameterInfo_24_1>() * paramCount);
            var res = new Il2CppParameterInfo *[paramCount];

            for (var i = 0; i < paramCount; i++)
            {
                ptr[i] = default;
                res[i] = (Il2CppParameterInfo *)&ptr[i];
            }
            return(res);
        }
 public unsafe INativeParameterInfoStruct Wrap(Il2CppParameterInfo *paramInfoPointer)
 {
     return(new NativeParameterInfoStructWrapper((IntPtr)paramInfoPointer));
 }