-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayFB1.cs
More file actions
50 lines (42 loc) · 1.1 KB
/
ArrayFB1.cs
File metadata and controls
50 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#region Copyright
//
// Copyright (c) Phoenix Contact GmbH & Co. KG. All rights reserved.
// Licensed under the MIT. See LICENSE file in the project root for full license information.
//
#endregion Copyright
using Eclr;
using Iec61131.Engineering.Prototypes.Methods;
using Iec61131.Engineering.Prototypes.Types;
using Iec61131.Engineering.Prototypes.Variables;
namespace DocuSharedNativeLibrary
{
[FunctionBlock]
public unsafe class ArrayFB1
{
[InOut]
public Int32Array* IN_ARRAY;
[InOut]
public Int32Array* OUT_ARRAY;
[Initialization]
public void __Init()
{
}
[Execution]
public void __Process()
{
if (IN_ARRAY == null || OUT_ARRAY == null)
{
return;
}
ArrayFB1NativeMethods.Reverse(ref *OUT_ARRAY, ref *IN_ARRAY);
}
}
[Native]
internal static class ArrayFB1NativeMethods
{
public static void Reverse(ref Int32Array outArray, ref Int32Array inArray)
{
// Implementation in native code
}
}
}