瀏覽代碼

restore calcSizeBinary as a single function UA_calcSizeBinary

Julius Pfrommer 9 年之前
父節點
當前提交
cee54343c0
共有 3 個文件被更改,包括 2568 次插入2004 次删除
  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

文件差異過大導致無法顯示
+ 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);
                               size_t *UA_RESTRICT offset);
 UA_StatusCode UA_decodeBinary(const UA_ByteString *src, size_t * UA_RESTRICT offset, void *dst,
 UA_StatusCode UA_decodeBinary(const UA_ByteString *src, size_t * UA_RESTRICT offset, void *dst,
                               const UA_DataType *dataType);
                               const UA_DataType *dataType);
+size_t UA_calcSizeBinary(const void *p, const UA_DataType *dataType);
+
 /// @}
 /// @}
 
 
 #endif /* UA_TYPES_ENCODING_BINARY_H_ */
 #endif /* UA_TYPES_ENCODING_BINARY_H_ */

文件差異過大導致無法顯示
+ 1462 - 1139
tests/check_builtin.c