Skip to content

Commit

Permalink
simplify the signature for _calcSizeBinary
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr authored and Pro committed Mar 27, 2018
1 parent f488c69 commit 12ca359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ua_types_encoding_binary.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2014-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
* Copyright 2015 (c) Sten Grüner
Expand Down
6 changes: 4 additions & 2 deletions tools/generate_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
"Int32": "UA_BINARY_OVERLAYABLE_INTEGER", "UInt32": "UA_BINARY_OVERLAYABLE_INTEGER",
"Int64": "UA_BINARY_OVERLAYABLE_INTEGER", "UInt64": "UA_BINARY_OVERLAYABLE_INTEGER",
"Float": "UA_BINARY_OVERLAYABLE_FLOAT", "Double": "UA_BINARY_OVERLAYABLE_FLOAT",
"DateTime": "UA_BINARY_OVERLAYABLE_INTEGER", "StatusCode": "UA_BINARY_OVERLAYABLE_INTEGER",
"Guid": "(UA_BINARY_OVERLAYABLE_INTEGER && offsetof(UA_Guid, data2) == sizeof(UA_UInt32) && " + \
"DateTime": "UA_BINARY_OVERLAYABLE_INTEGER",
"StatusCode": "UA_BINARY_OVERLAYABLE_INTEGER",
"Guid": "(UA_BINARY_OVERLAYABLE_INTEGER && " + \
"offsetof(UA_Guid, data2) == sizeof(UA_UInt32) && " + \
"offsetof(UA_Guid, data3) == (sizeof(UA_UInt16) + sizeof(UA_UInt32)) && " + \
"offsetof(UA_Guid, data4) == (2*sizeof(UA_UInt32)))"}

Expand Down

0 comments on commit 12ca359

Please sign in to comment.