Browse Source

simplify encoding

Julius Pfrommer 9 years ago
parent
commit
2b3d33d41e
2 changed files with 353 additions and 369 deletions
  1. 351 367
      src/ua_types_encoding_binary.c
  2. 2 2
      src/ua_types_encoding_binary.h

File diff suppressed because it is too large
+ 351 - 367
src/ua_types_encoding_binary.c


+ 2 - 2
src/ua_types_encoding_binary.h

@@ -4,9 +4,9 @@
 #include "ua_types.h"
 
 UA_StatusCode UA_encodeBinary(const void *src, const UA_DataType *type, UA_ByteString *dst,
-                              size_t *UA_RESTRICT offset) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
+                              size_t *offset) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
 
-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 *offset, void *dst,
                               const UA_DataType *type) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
 
 #endif /* UA_TYPES_ENCODING_BINARY_H_ */