123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- /*
- * opcua_BinaryEncDec.h
- *
- * Created on: Dec 18, 2013
- * Author: opcua
- */
- #ifndef OPCUA_BINARYENCDEC_NEU_H_
- #define OPCUA_BINARYENCDEC_NEU_H_
- #include "opcua_builtInDatatypes.h"
- #include "opcua_advancedDatatypes.h"
- //functions
- /**
- *
- * @param buf binary encoded message
- * @param pos position at which the data is located in/out, parser position after the conversion
- * @return
- */
- Byte convertToByte(const char* buf, Int32 *pos);
- /**
- *
- * @param encodeByte byte that should be encoded
- * @param pos position at which the data is located in/out, parser position after the conversion
- * @param dstBuf rawMessage where the Byte is encoded in
- */
- void encodeByte(Byte encodeByte, Int32 *pos, AD_RawMessage *dstBuf);
- /**
- *
- * @param buf
- * @param pos
- * @return
- */
- Int16 convertToInt16(const char* buf, Int32 *pos);
- /**
- *
- * @param buf
- * @param pos
- * @return
- */
- UInt16 convertToUInt16(const char* buf, Int32 *pos);
- /**
- *
- * @param buf binary encoded message
- * @param pos position at which the data is located in/out, parser position after the conversion
- * @return
- */
- Int32 convertToInt32(const char* buf, Int32 *pos);
- /**
- *
- * @param buf binary encoded message
- * @param pos position at which the data is located in/out, parser position after the conversion
- * @return encoded data
- */
- UInt32 convertToUInt32(const char* buf, Int32 *pos);
- /**
- *
- * @param buf
- * @param pos
- * @return
- */
- Int64 convertToInt64(const char* buf, Int32 *pos);
- /**
- *
- * @param buf binary encoded message
- * @param pos position at which the data is located in/out, parser position after the conversion
- * @param dstNodeId receiver of the nodeid structure
- * @param return success = 0
- */
- Int32 convertToUANodeId(const char* buf, Int32 *pos, UA_NodeId *dstNodeId);
- /**
- *
- * @param buf
- * @param pos
- * @param dstGUID
- * @return
- */
- Int32 convertToUAGuid(const char *buf, Int32 *pos, UA_Guid *dstGUID);
- /**
- *
- * @param buf
- * @param pos
- * @return
- */
- UA_StatusCode convertToUAStatusCode(const char* buf, Int32 *pos);
- /**
- *
- * @param buf
- * @param pos
- * @return
- */
- UA_DateTime convertToUADateTime(const char *buf, Int32 *pos);
- /**
- *
- * @param buf
- * @param pos
- * @param dstUAString
- * @return
- */
- Int32 convertToUAString(const char* buf, Int32 *pos, UA_String *dstUAString);
- /**
- *
- * @param value
- * @param dstBuf
- * @param pos
- */
- void convertUInt32ToByteArray(UInt32 value, char *dstBuf, Int32 *pos);
- #endif /* OPCUA_BINARYENCDEC_NEU_H_ */
|