|
@@ -603,31 +603,6 @@ Int32 UA_ExtensionObject_deleteMembers(UA_ExtensionObject *p) {
|
|
|
return retval;
|
|
|
}
|
|
|
|
|
|
-Int32 UA_DataValue_calcSize(UA_DataValue const * dataValue) {
|
|
|
- Int32 length = 0;
|
|
|
-
|
|
|
- length += sizeof(UA_Byte);
|
|
|
-
|
|
|
- if (dataValue->encodingMask & 0x01) {
|
|
|
- length += UA_Variant_calcSize(&(dataValue->value));
|
|
|
- }
|
|
|
- if (dataValue->encodingMask & 0x02) {
|
|
|
- length += sizeof(UA_UInt32);
|
|
|
- }
|
|
|
- if (dataValue->encodingMask & 0x04) {
|
|
|
- length += sizeof(UA_Int64);
|
|
|
- }
|
|
|
- if (dataValue->encodingMask & 0x08) {
|
|
|
- length += sizeof(UA_Int64);
|
|
|
- }
|
|
|
- if (dataValue->encodingMask & 0x10) {
|
|
|
- length += sizeof(UA_Int64);
|
|
|
- }
|
|
|
- if (dataValue->encodingMask & 0x20) {
|
|
|
- length += sizeof(UA_Int64);
|
|
|
- }
|
|
|
- return length;
|
|
|
-}
|
|
|
|
|
|
|
|
|
|