MCPcopy Create free account
hub / github.com/ElementsProject/elements / skip

Function skip

src/simplicity/eval.c:141–144  ·  view source on GitHub ↗

Given a write frame, advance its cursor by 'n' cells. * * Precondition: n <= frame->offset */

Source from the content-addressed store, hash-verified

139 * Precondition: n <= frame->offset
140 */
141static void skip(frameItem* frame, size_t n) {
142 simplicity_debug_assert(n <= frame->offset);
143 frame->offset -= n;
144}
145
146/* Given a compact bit representation of a value 'v : B', write the value 'v' to a write frame, skipping cells as needed
147 * and advance its cursor.

Callers 2

writeValueFunction · 0.85
runTCOFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected