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

Function pull_chars

common/codex32.c:192–200  ·  view source on GitHub ↗

Pull len chars from cursor into dst. */

Source from the content-addressed store, hash-verified

190
191/* Pull len chars from cursor into dst. */
192static bool pull_chars(char *dst, size_t len, const char **cursor, size_t *max)
193{
194 if (*max < len)
195 return false;
196 memcpy(dst, *cursor, len);
197 *cursor += len;
198 *max -= len;
199 return true;
200}
201
202/* Truncate length of *cursor (i.e. trim from end) */
203static bool trim_chars(size_t len, const char **cursor, size_t *max)

Callers 1

codex32_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected