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

Function decode

libminifi/test/Server.cpp:150–153  ·  view source on GitHub ↗

encode uint32_t

Source from the content-addressed store, hash-verified

148
149// encode uint32_t
150uint8_t *decode(uint8_t *buf, uint32_t &value) {
151 value = ((buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | (buf[3]));
152 return (buf + 4);
153}
154
155// encode byte array
156uint8_t *encode(uint8_t *buf, uint8_t *bufArray, int size) {

Callers 2

readHdrFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected