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.
SomeIpGetValueString
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function can be used to read out a string from the object specified in the objectHandle parameter. For Enum data types, the function returns the symbolic value. Note- At present, only the basic A_ASCIISTRING data type is supported.
- A corresponding syntax must be adhered to for specifying the access paths. The access path results from the database description of the value to be read (see also Syntax for Database-based Access Paths).
- The content of a Service Discovery message can also be read out with this function. Here, the value is accessed via a predefined access path (see also Syntax for Predefined SD Access Paths).
Parameters
-
objectHandle: Handle to a SOME/IP IL object, which must be completely described in the FIBEX database. The following objects are supported:
- Messages
- Fields
- Method calls: Handle to a method call that was created with SomeIpCreateMethodCall.
- valuePath: Path of the value to be read out. For specification of complex paths, a corresponding syntax must be adhered to.
- bufferLength: Length of the buffer parameter in bytes. If the selected buffer length is too small, the function copies only the number of characters (including null termination) that fit in the buffer.
- buffer: After execution, this parameter contains the null-terminated string. See BOM in SOME/IP UTF8 and UTF16 strings.
Return Values
- Number of copied bytes: In case of an error, the function returns 0, and the exact error code can be queried with SomeIpGetLastError. See BOM in SOME/IP UTF8 and UTF16 strings.