Skip to main content

mostAllocTableGetSize

Open topic with navigation CAPL Functions » MOST » mostAllocTableGetSize Valid for: CANoe DE

Function Syntax

long mostAllocTableGetSize(long channel);

Description

Returns the number of entries (connection labels) in the allocation table.

Parameters

  • channel: Application channel number.

Return Values

Example

List all connection labels in the Write Window on change of the allocation table.
OnMostAllocTable()
{
    long numEntries, labelWidth, label, i;
    numEntries = mostAllocTableGetSize(mostEventChannel());
    write("%f s: OnMostAllocTable(): Number of allocated labels: %d", mostEventTimeNs()/1.0e9, numEntries);
    for(i = 0; i < numEntries; ++i)
    {
        write("  Label: %03X  Width: %d", mostAllocTableGetCL(mostEventChannel(), i), mostAllocTableGetWidth(mostEventChannel(), i));
    }
}