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

Function readBit

src/simplicity/frame.h:63–67  ·  view source on GitHub ↗

Given a read frame, return the value of the cell at the cursor and advance the cursor by one cell. * * Precondition: '*frame' is a valid read frame for 1 more cell. */

Source from the content-addressed store, hash-verified

61 * Precondition: '*frame' is a valid read frame for 1 more cell.
62 */
63static inline bool readBit(frameItem* frame) {
64 bool result = peekBit(frame);
65 frame->offset++;
66 return result;
67}
68
69/* Given a write frame, set its cursor's cell to 'bit' and advance the cursor by one cell.
70 * Cells in front of the cursor's final position may be overwritten.

Callers 15

simplicity_verifyFunction · 0.85
simplicity_complement_1Function · 0.85
simplicity_and_1Function · 0.85
simplicity_or_1Function · 0.85
simplicity_xor_1Function · 0.85
simplicity_maj_1Function · 0.85
simplicity_xor_xor_1Function · 0.85
simplicity_ch_1Function · 0.85
simplicity_some_1Function · 0.85
simplicity_eq_1Function · 0.85
jets.cFile · 0.85
simplicity_decompressFunction · 0.85

Calls 1

peekBitFunction · 0.85

Tested by

no test coverage detected