MCPcopy Create free account
hub / github.com/acl-dev/acl / decode

Function decode

lib_acl_cpp/samples/mqtt/mqtt_length/main.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include <stdlib.h>
15
16static unsigned decode(const unsigned char* buf, unsigned len) {
17 unsigned n = 0;
18 for (unsigned i = 0; i < len; i++) {
19 n |= (unsigned) ((buf[i] & 0x7f) << (7 * i));
20 }
21 return n;
22}
23
24static int encode(unsigned n, unsigned char *buf) {
25 int len = 0;

Callers 8

header_outFunction · 0.85
mainFunction · 0.85
decode_updateMethod · 0.85
decode_finishMethod · 0.85
decode_updateMethod · 0.85
decode_finishMethod · 0.85
rfc822.cppFile · 0.85
mime_debugMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…