ua_types_encoding_binary.h 993 B

123456789101112131415161718192021222324
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef UA_TYPES_ENCODING_BINARY_H_
  5. #define UA_TYPES_ENCODING_BINARY_H_
  6. #include "ua_types.h"
  7. typedef UA_StatusCode (*UA_exchangeEncodeBuffer)(void *handle, UA_ByteString *buf, size_t offset);
  8. UA_StatusCode UA_EXPORT
  9. UA_encodeBinary(const void *src, const UA_DataType *type,
  10. UA_exchangeEncodeBuffer exchangeCallback, void *exchangeHandle,
  11. UA_ByteString *dst, size_t *offset) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
  12. UA_StatusCode UA_EXPORT
  13. UA_decodeBinary(const UA_ByteString *src, size_t *offset, void *dst,
  14. const UA_DataType *type, size_t customTypesSize,
  15. const UA_DataType *customTypes) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
  16. size_t UA_calcSizeBinary(void *p, const UA_DataType *type);
  17. #endif /* UA_TYPES_ENCODING_BINARY_H_ */