Browse Source

restore calcSizeBinary as a single function UA_calcSizeBinary

Julius Pfrommer 9 years ago
parent
commit
cee54343c0
3 changed files with 2568 additions and 2004 deletions
  1. 1104 865
      src/ua_types_encoding_binary.c
  2. 2 0
      src/ua_types_encoding_binary.h
  3. 1462 1139
      tests/check_builtin.c

File diff suppressed because it is too large
+ 1104 - 865
src/ua_types_encoding_binary.c


+ 2 - 0
src/ua_types_encoding_binary.h

@@ -77,6 +77,8 @@ UA_StatusCode UA_encodeBinary(const void *src, const UA_DataType *dataType, UA_B
                               size_t *UA_RESTRICT offset);
 UA_StatusCode UA_decodeBinary(const UA_ByteString *src, size_t * UA_RESTRICT offset, void *dst,
                               const UA_DataType *dataType);
+size_t UA_calcSizeBinary(const void *p, const UA_DataType *dataType);
+
 /// @}
 
 #endif /* UA_TYPES_ENCODING_BINARY_H_ */

File diff suppressed because it is too large
+ 1462 - 1139
tests/check_builtin.c