-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayFB2-cli.cpp
More file actions
38 lines (31 loc) · 1021 Bytes
/
Copy pathArrayFB2-cli.cpp
File metadata and controls
38 lines (31 loc) · 1021 Bytes
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
// ArrayFB2 native assembly code template.
// PHOENIX CONTACT Software embedded CLR native assembly builder tool generated source file.
// use this file to implement your own native code
#include "eclr.h"
#include "DocuSharedNativeLibrary.h"
void __PInvoke__ DocuSharedNativeLibrary::ArrayFB2::__Process()
{
if (IN_ARRAY == 0 || OUT_ARRAY == 0)
{
return;
}
Int32* outData = &OUT_ARRAY->Anchor;
Int32* inData = &IN_ARRAY->Anchor;
Int32 size = IN_ARRAY->GetUpperBound() - IN_ARRAY->GetLowerBound() + 1;
for (int i = 0; i < size; i++)
{
Int32 value = inData[i];
outData[size - i - 1] = value;
}
}
DocuSharedNativeLibrary::ArrayFB2::ArrayFB2()
{
// implement your constructor code here !
}
void __PInvoke__ DocuSharedNativeLibrary::ArrayFB2::ctor()
{
// automatically generated auxiliary constructor : calls the constructor by displacement new operator !
// @Begin automatically generated code, do not modify !
new (this) DocuSharedNativeLibrary::ArrayFB2();
// @End automatically generated code
}