Skip to main content

SomeIpSerializeMessage

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

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 (for example, 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 SomeIpCreateMessage, 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 SomeIpGetLastError function can then be used to check whether the value is valid or an error has occurred.

Example

See Also