|
@@ -79,17 +79,13 @@ Int64 convertToInt64(char* buf, int pos)
|
|
|
return t1 + t2 + t3 + t4 + t5 + t6 + t7 + t8;
|
|
|
}
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
Int64 convertToInt64_test(char* buf, int pos)
|
|
|
{
|
|
|
|
|
|
printf("");
|
|
|
}
|
|
|
|
|
|
-UA_String convertToUAString(char* buf, int pos)
|
|
|
-=======
|
|
|
-convertToUAString(char* buf, int pos,UA_String *dstUAString)
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
+void convertToUAString(char* buf, int pos, UA_String* dstUAString)
|
|
|
{
|
|
|
|
|
|
dstUAString->Length = convertToInt32(buf,pos);
|
|
@@ -111,43 +107,27 @@ convertToUAGuid(char* buf, int pos,UA_Guid* dstGUID)
|
|
|
UInt32 i = 0;
|
|
|
for(i = 1; i <= 4; i++)
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUAGuid.Data1[i] = convertToUInt32(buf, pos+counter);
|
|
|
-=======
|
|
|
dstGUID->Data1[i] = convertToUInt32(*buf, pos+counter);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(UInt32);
|
|
|
}
|
|
|
for(i = 1; i <= 2; i++)
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUAGuid.Data2[i] = convertToUInt16(buf, pos+counter);
|
|
|
-=======
|
|
|
dstGUID->Data2[i] = convertToUInt16(*buf, pos+counter);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(UInt16);
|
|
|
}
|
|
|
for(i = 1; i <= 2; i++)
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUAGuid.Data3[i] = convertToUInt16(buf, pos+counter);
|
|
|
-=======
|
|
|
dstGUID->Data3[i] = convertToUInt16(*buf, pos+counter);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(UInt16);
|
|
|
}
|
|
|
for(i = 1; i <= 8; i++)
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUAGuid.Data4[i] = convertToByte(buf, pos+counter);
|
|
|
-=======
|
|
|
dstGUID->Data4[i] = convertToByte(*buf, pos+counter);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(Byte);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
+
|
|
|
UA_ByteString convertToUAByteString(char* buf, int pos){
|
|
|
UA_ByteString tmpUAByteString;
|
|
|
int counter = sizeof(Int32);
|
|
@@ -181,14 +161,10 @@ UA_StatusCode convertToUAStatusCode(char* buf, int pos){
|
|
|
return convertToUInt32(buf, pos);
|
|
|
}
|
|
|
|
|
|
-UA_NodeId convertToUANodeId(char* buf, int pos){
|
|
|
- UA_NodeId tmpUANodeId;
|
|
|
- tmpUANodeId.EncodingByte = convertToInt32(buf, 0);
|
|
|
-=======
|
|
|
+
|
|
|
void convertToUANodeId(char* buf, int pos, UA_NodeId* dstNodeId){
|
|
|
|
|
|
dstNodeId->EncodingByte = convertToInt32(buf, 0);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
int counter = sizeof(UInt32);
|
|
|
|
|
|
UA_NodeIdEncodingValuesType encodingType = dstNodeId->EncodingByte;
|
|
@@ -197,54 +173,32 @@ void convertToUANodeId(char* buf, int pos, UA_NodeId* dstNodeId){
|
|
|
{
|
|
|
case NIEVT_TWO_BYTE:
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUANodeId.Identifier.Numeric = convertToInt32(buf, counter);
|
|
|
-=======
|
|
|
dstNodeId->Identifier.Numeric = convertToInt32(buf, counter);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(UInt16);
|
|
|
break;
|
|
|
}
|
|
|
case NIEVT_FOUR_BYTE:
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUANodeId.Identifier.Numeric = convertToInt32(buf, counter);
|
|
|
-=======
|
|
|
dstNodeId->Identifier.Numeric = convertToInt32(buf, counter);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(Int64);
|
|
|
break;
|
|
|
}
|
|
|
case NIEVT_NUMERIC:
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUANodeId.Identifier.Numeric = convertToInt32(buf, counter);
|
|
|
-=======
|
|
|
dstNodeId->Identifier.Numeric = convertToInt32(buf, counter);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(UInt32);
|
|
|
break;
|
|
|
}
|
|
|
case NIEVT_STRING:
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
- tmpUANodeId.Identifier.String = convertToUAString(buf, counter);
|
|
|
- counter += sizeof(sizeof(UInt32) + tmpUANodeId.Identifier.String.Length*sizeof(char));
|
|
|
-=======
|
|
|
-
|
|
|
convertToUAString(buf, counter,&dstNodeId->Identifier.String);
|
|
|
counter += sizeof(sizeof(UInt32) + dstNodeId->Identifier.String.Length);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
break;
|
|
|
}
|
|
|
case NIEVT_GUID:
|
|
|
{
|
|
|
-<<<<<<< HEAD
|
|
|
tmpUANodeId.Identifier.Guid = convertToUAGuid(buf, counter);
|
|
|
-=======
|
|
|
-
|
|
|
convertToUAGuid(buf, counter,&dstNodeId->Identifier.Guid);
|
|
|
->>>>>>> branch 'master' of https://github.com/Stasik0/Open62541.git
|
|
|
counter += sizeof(UA_Guid);
|
|
|
break;
|
|
|
}
|