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

Function stream

wire/test/run-tlvstream.c:428–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428static u8 *stream(const tal_t *ctx, const char *hex)
429{
430 size_t i, j;
431 char *str = tal_arr(tmpctx, char, strlen(hex) + 1);
432
433 /* Remove spaces and use normal helper */
434 for (i = j = 0; i <= strlen(hex); i++) {
435 if (hex[i] != ' ')
436 str[j++] = hex[i];
437 }
438 return tal_hexdata(ctx, str, strlen(str));
439}
440
441static u8 *stream2(const tal_t *ctx, const char *hex1, const char *hex2)
442{

Callers 2

stream2Function · 0.85
mainFunction · 0.85

Calls 1

tal_hexdataFunction · 0.85

Tested by

no test coverage detected