Skip to main content
Open topic with navigation

ethernetPacket Selectors: <protocol>.byteLength

CAPL Functions » Ethernet » Function Overview » ethernetPacket » Selector <protocol>.byteLength Valid for: CANoe DE • CANoe4SW DE

Selectors

Description

Returns the length of the payload of the protocol. The selector is read only. If <protocol> is not contained in the packet, the selector returns 0. ethernetPacket::protocol::IsAvailable can be used to find out if the protocol is available.

Parameters

Return Values

Length of the protocol payload in bytes.

Example