Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AREthSerializeMessage
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
dword AREthSerializeMessage(dword messageHandle, dword bufferLength, CHAR buffer[]); // form 1dword AREthSerializeMessage(dword messageHandle, dword bufferLength, BYTE buffer[]); // form 2dword AREthSerializeMessage(dword messageHandle, dword bufferLength, struct buffer[]); // form 3
Description
Serializes a SOME/IP message into a data buffer. Both the SOME/IP header and the payload are serialized. Note: If the configuration of the SOME/IP message is invalid (e.g., incorrect value in length field or invalid content of payload), the message is not corrected when serialized. The message is passed unchanged.Parameters
- messageHandle: Handle of the message that was created with AREthCreateMessage, for example.
- bufferLength: Length of the buffer parameter in bytes.
- buffer: Data buffer into which the SOME/IP message is serialized.
Return Values
- Number of copied bytes: In the event of an error, the function returns the value 0. The AREthGetLastError function can then be used to check whether the value is valid or an error has occurred.