ByteIndex returns the current offset into the full script that will be parsed next and therefore also implies everything before it has already been parsed.
()
| 156 | // ByteIndex returns the current offset into the full script that will be parsed |
| 157 | // next and therefore also implies everything before it has already been parsed. |
| 158 | func (t *ScriptTokenizer) ByteIndex() int32 { |
| 159 | return t.offset |
| 160 | } |
| 161 | |
| 162 | // OpcodePosition returns the current op code counter. Unlike the ByteIndex |
| 163 | // above (referred to as the program counter or pc at times), this is |
no outgoing calls