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

Method encode

libminifi/include/FlowControlProtocol.h:224–230  ·  view source on GitHub ↗

encode uint32_t

Source from the content-addressed store, hash-verified

222 int readHdr(FlowControlProtocolHeader *hdr);
223 // encode uint32_t
224 uint8_t *encode(uint8_t *buf, uint32_t value) {
225 *buf++ = (value & 0xFF000000) >> 24;
226 *buf++ = (value & 0x00FF0000) >> 16;
227 *buf++ = (value & 0x0000FF00) >> 8;
228 *buf++ = (value & 0x000000FF);
229 return buf;
230 }
231
232 // encode uint32_t
233 uint8_t *decode(uint8_t *buf, uint32_t &value) {

Callers 15

sendRegisterReqMethod · 0.95
sendReportReqMethod · 0.95
getFile.pyFile · 0.80
set_propertyMethod · 0.80
transferMethod · 0.80
get_attributeMethod · 0.80
add_attributeMethod · 0.80
update_attributeMethod · 0.80
__init__Method · 0.80
set_propertyMethod · 0.80
add_processorMethod · 0.80
processMethod · 0.80

Calls 3

encodeFunction · 0.85
c_strMethod · 0.80
sizeMethod · 0.45

Tested by 1

put_test_dataMethod · 0.64