Skip to main content

SomeIpGetData

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • dword SomeIpGetData(dword messageHandle, dword bufferLength, char buffer[]); // form 1
  • dword SomeIpGetData(dword messageHandle, dword bufferLength, byte buffer[]); // form 2
  • dword SomeIpGetData(dword messageHandle, dword bufferLength, struct buffer[]); // form 3

Description

This function can be used to query the raw data of a SOME/IP message.

Parameters

  • messageHandle: Handle of the received SOME/IP message (see OnSomeIpMessage)
  • bufferLength: Size of the buffer in bytes
  • buffer: Data are copied to this buffer

Return Values

  • 0: An error occurred. The error can be evaluated using the SomeIpGetLastError function.
  • >0: Number of copied bytes

Example

See Also