-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStructArrayFB2-cli.cpp
More file actions
43 lines (35 loc) · 1.29 KB
/
Copy pathStructArrayFB2-cli.cpp
File metadata and controls
43 lines (35 loc) · 1.29 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
// StructArrayFB2 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"
// class DocuSharedNativeLibrary.StructArrayFB2 implementation
void __PInvoke__ DocuSharedNativeLibrary::StructArrayFB2::__Process()
{
if (IN_ARRAY == 0 || OUT_ARRAY == 0)
{
return;
}
InfoStruct* outData = &OUT_ARRAY->Anchor;
InfoStruct* inData = &IN_ARRAY->Anchor;
Int32 size = IN_ARRAY->GetUpperBound() - IN_ARRAY->GetLowerBound() + 1;
for (int i = 0; i < size; i++)
{
InfoStruct* inInfo = &inData[i];
InfoStruct* outInfo = &outData[size - i - 1];
outInfo->VALUE_A = inInfo->VALUE_A;
outInfo->VALUE_B = inInfo->VALUE_B;
outInfo->TEXT.s.Assign(inInfo->TEXT.s.Begin(), inInfo->TEXT.s.GetLength());
}
}
DocuSharedNativeLibrary::StructArrayFB2::StructArrayFB2()
{
// implement your constructor code here !
}
void __PInvoke__ DocuSharedNativeLibrary::StructArrayFB2::ctor()
{
// automatically generated auxiliary constructor : calls the constructor by displacement new operator !
// @Begin automatically generated code, do not modify !
new (this) DocuSharedNativeLibrary::StructArrayFB2();
// @End automatically generated code
}