MCPcopy Create free account
hub / github.com/ElementsProject/lightning / encode

Function encode

ccan/ccan/strset/test/run-hibit.c:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#define NUM 1000
7
8static void encode(char template[3], unsigned int val)
9{
10 assert(val < 255 * 255);
11 template[0] = (val / 255) + 1;
12 template[1] = (val % 255) + 1;
13 template[2] = '\0';
14}
15
16static bool in_order(const char *value, unsigned int *count)
17{

Callers 5

in_orderFunction · 0.70
in_order_by_2Function · 0.70
mainFunction · 0.70
fromMethod · 0.50
serializeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected