ua_types_encoding_binary.h 985 B

12345678910111213141516171819202122232425
  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_Byte **bufPos, const UA_Byte **bufEnd);
  8. UA_StatusCode
  9. UA_encodeBinary(const void *src, const UA_DataType *type,
  10. UA_Byte **bufPos, const UA_Byte **bufEnd,
  11. UA_exchangeEncodeBuffer exchangeCallback, void *exchangeHandle) UA_FUNC_ATTR_WARN_UNUSED_RESULT;
  12. UA_StatusCode
  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_ */