Skip to main content

AREthGetData

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • dword AREthGetData(dword messageHandle, dword bufferLength, char buffer[]); // form 1
  • dword AREthGetData(dword messageHandle, dword bufferLength, byte buffer[]); // form 2
  • dword AREthGetData(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 OnAREthMessage)
  • 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 AREthGetLastError function.
  • >0: Number of copied bytes

Example

See Also