MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / FlowControlMsgIDEncodingLen

Function FlowControlMsgIDEncodingLen

libminifi/test/Server.cpp:92–101  ·  view source on GitHub ↗

FlowControl Protocol Msg Len

Source from the content-addressed store, hash-verified

90
91// FlowControl Protocol Msg Len
92inline 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
104inline const char *FlowControlMsgIdToStr(FlowControlMsgID id) {

Callers 3

mainFunction · 0.70
sendRegisterReqMethod · 0.50
sendReportReqMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected