MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / get

Method get

lib/script/script.js:2568–2576  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

2566 */
2567
2568 get(index) {
2569 if (index < 0)
2570 index += this.code.length;
2571
2572 if (index < 0 || index >= this.code.length)
2573 return null;
2574
2575 return this.code[index];
2576 }
2577
2578 pop() {
2579 const op = this.code.pop();

Callers 12

getOpMethod · 0.95
getDataMethod · 0.95
getLengthMethod · 0.95
getPushMethod · 0.95
getStringMethod · 0.95
getSmallMethod · 0.95
getNumMethod · 0.95
getIntMethod · 0.95
getBoolMethod · 0.95
getSymMethod · 0.95
executeMethod · 0.45
verifyProgramMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected