Пример #1
0
        internal void Initialize()
        {
            EnsureNotInitialized();

            if (Address == IntPtr.Zero)
            {
                Address = FMemory.Malloc(NativeReflection.GetStructSize(structAddress));
                Native_UStruct.InitializeStruct(structAddress, Address, 1);
            }

            initialized = true;
        }
Пример #2
0
 /// <summary>
 /// Initialize a struct over uninitialized memory. This may be done by calling the native constructor or individually initializing properties
 /// </summary>
 /// <param name="dest">Pointer to memory to initialize</param>
 /// <param name="arrayDim">Number of elements in the array</param>
 public void InitializeStruct(IntPtr dest, int arrayDim)
 {
     Native_UStruct.InitializeStruct(Address, dest, arrayDim);
 }