OpcodePosition returns the current op code counter. Unlike the ByteIndex above (referred to as the program counter or pc at times), this is incremented with each node op code, and isn't incremented more than once for push datas. NOTE: If no op codes have been parsed, this returns -1.
()
| 166 | // |
| 167 | // NOTE: If no op codes have been parsed, this returns -1. |
| 168 | func (t *ScriptTokenizer) OpcodePosition() int32 { |
| 169 | return t.opcodePos |
| 170 | } |
| 171 | |
| 172 | // Opcode returns the current opcode associated with the tokenizer. |
| 173 | func (t *ScriptTokenizer) Opcode() byte { |
no outgoing calls
no test coverage detected