FlowControl Protocol Msg Len
| 90 | |
| 91 | // FlowControl Protocol Msg Len |
| 92 | inline int FlowControlMsgIDEncodingLen(FlowControlMsgID id, int payLoadLen) { |
| 93 | if (id == FLOW_SERIAL_NUMBER) |
| 94 | return (TYPE_HDR_LEN + 8); |
| 95 | else if (id == REPORT_INTERVAL) |
| 96 | return (TYPE_HDR_LEN + 4); |
| 97 | else if (id < MAX_FLOW_MSG_ID) |
| 98 | return (TLV_HDR_LEN + payLoadLen); |
| 99 | else |
| 100 | return -1; |
| 101 | } |
| 102 | |
| 103 | // Flow Control Msg Id to String |
| 104 | inline const char *FlowControlMsgIdToStr(FlowControlMsgID id) { |
no outgoing calls
no test coverage detected