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

Function trim_chars

common/codex32.c:203–209  ·  view source on GitHub ↗

Truncate length of *cursor (i.e. trim from end) */

Source from the content-addressed store, hash-verified

201
202/* Truncate length of *cursor (i.e. trim from end) */
203static bool trim_chars(size_t len, const char **cursor, size_t *max)
204{
205 if (*max < len)
206 return false;
207 *max -= len;
208 return true;
209}
210
211/* Helper to fetch data from payload as a valid hex buffer */
212static const u8 *decode_payload(const tal_t *ctx, const char *payload, size_t payload_len)

Callers 1

codex32_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected