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

Function stream

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

Source from the content-addressed store, hash-verified

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

Callers 2

stream2Function · 0.85
mainFunction · 0.85

Calls 1

tal_hexdataFunction · 0.85

Tested by

no test coverage detected