You are here: SwitchKit® Development Environment Programmer’s Guide > 8 Utility Functions > sk_getMsgSizeFromTag()
Description
Returns the size, in bytes, of the C structure associated with a message of type tag. For example, sk_getMsgSizeFromTag(0xa8) would return the size of XL_AssignSpan structure. This function is also available as skts_getMsgSizeFromTag().
int sk_getMsgSizeFromTag(int aMessageTag);
int skts_getMsgSizeFromTag( int aMessageTag);
The function parameters are shown in the table below.
Argument |
Description |
---|---|
aMessageTag |
Uniquely identifies the message. Valid message tags are defined in Messages.api.h and begin TAG_. Each message has a message tag. For example the the RequestForService message, the message tag is TAG_RequestForService. |
Possible return values for this function are:
SK_LOST_LLC |
This return value indicates that your application lost contact with the LLC. |