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

Function skipBits

src/simplicity/frame.h:104–107  ·  view source on GitHub ↗

Given a write frame, advance the cursor by 'n' cells. * * Precondition: '*frame' is a valid write frame for 'n' more cells. */

Source from the content-addressed store, hash-verified

102 * Precondition: '*frame' is a valid write frame for 'n' more cells.
103 */
104static inline void skipBits(frameItem* frame, size_t n) {
105 simplicity_debug_assert(n <= frame->offset);
106 frame->offset -= n;
107}
108
109/* Given a read frame, the 'readN' function returns the value of the 'N' cells after the cursor and
110 * advances the frame's cursor by 'N'.

Calls

no outgoing calls

Tested by

no test coverage detected