Exemple #1
0
        public void ToNative(IntPtr nativeStruct)
        {
            if (!FTestSS_IsValid)
            {
                NativeReflection.LogInvalidStructAccessed("/Game/Pong/Test/TestSS.TestSS");
                return;
            }
            BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, MemberVar_0_Offset), 0, MemberVar_0_PropertyAddress.Address, MemberVar_0);
            TArrayCopyMarshaler <float> MemberVar_1_Marshaler = new TArrayCopyMarshaler <float>(1, MemberVar_1_PropertyAddress, CachedMarshalingDelegates <float, BlittableTypeMarshaler <float> > .FromNative, CachedMarshalingDelegates <float, BlittableTypeMarshaler <float> > .ToNative);

            MemberVar_1_Marshaler.ToNative(IntPtr.Add(nativeStruct, MemberVar_1_Offset), MemberVar_1);
            BlittableTypeMarshaler <byte> .ToNative(IntPtr.Add(nativeStruct, MemberVar_21_Offset), MemberVar_21);
        }
Exemple #2
0
        public void ToNative(IntPtr nativeStruct)
        {
            if (!FDebugFloatHistory_IsValid)
            {
                return;
            }
            BlittableTypeMarshaler <float> .ToNative(IntPtr.Add(nativeStruct, MaxSamples_Offset), MaxSamples);

            BlittableTypeMarshaler <float> .ToNative(IntPtr.Add(nativeStruct, MinValue_Offset), MinValue);

            BlittableTypeMarshaler <float> .ToNative(IntPtr.Add(nativeStruct, MaxValue_Offset), MaxValue);

            BoolMarshaler.ToNative(IntPtr.Add(nativeStruct, AutoAdjustMinMax_Offset), 0, AutoAdjustMinMax_PropertyAddress.Address, AutoAdjustMinMax);
        }
Exemple #3
0
        public FDebugFloatHistory(IntPtr nativeStruct)
        {
            if (!FDebugFloatHistory_IsValid)
            {
                MaxSamples       = default(float);
                MinValue         = default(float);
                MaxValue         = default(float);
                AutoAdjustMinMax = default(bool);
                return;
            }
            MaxSamples = BlittableTypeMarshaler <float> .FromNative(IntPtr.Add(nativeStruct, MaxSamples_Offset));

            MinValue = BlittableTypeMarshaler <float> .FromNative(IntPtr.Add(nativeStruct, MinValue_Offset));

            MaxValue = BlittableTypeMarshaler <float> .FromNative(IntPtr.Add(nativeStruct, MaxValue_Offset));

            AutoAdjustMinMax = BoolMarshaler.FromNative(IntPtr.Add(nativeStruct, AutoAdjustMinMax_Offset), 0, AutoAdjustMinMax_PropertyAddress.Address);
        }
Exemple #4
0
        private void Invoker(int SomeArgument)
        {
            if (!ActorDelegateTest__DelegateSignature_IsValid)
            {
                NativeReflection.LogInvalidFunctionAccessed("/Script/USharp.ActorDelegateTest__DelegateSignature");
                return;
            }
            if (IsBound)
            {
                unsafe
                {
                    byte * ParamsBufferAllocation = stackalloc byte[ActorDelegateTest__DelegateSignature_ParamsSize];
                    IntPtr ParamsBuffer           = new IntPtr(ParamsBufferAllocation);
                    FMemory.Memzero(ParamsBuffer, ActorDelegateTest__DelegateSignature_ParamsSize);
                    BlittableTypeMarshaler <int> .ToNative(IntPtr.Add(ParamsBuffer, ActorDelegateTest__DelegateSignature_SomeArgument_Offset), 0, ActorDelegateTest__DelegateSignature_SomeArgument_PropertyAddress.Address, SomeArgument);

                    ProcessDelegate(ParamsBuffer);
                }
            }
        }
Exemple #5
0
 public static FKey FromNative(IntPtr nativeBuffer, int arrayIndex, IntPtr prop)
 {
     // We don't increase the TSharedPtr<FKeyDetails> ref count. Validate that this is a known FKey in the key map?
     // (if we don't validate and a custom made FKey is passed to C# we could end up referencing deleted memory)
     return(BlittableTypeMarshaler <FKey> .FromNative(nativeBuffer, arrayIndex, prop));
 }
Exemple #6
0
 public static FKey FromNative(IntPtr nativeBuffer)
 {
     return(BlittableTypeMarshaler <FKey> .FromNative(nativeBuffer));
 }