MCPcopy Create free account
hub / github.com/btcsuite/btcd / ByteIndex

Method ByteIndex

txscript/tokenizer.go:158–160  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
158func (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

Callers 7

BenchmarkScriptParsingFunction · 0.80
DisasmStringFunction · 0.80
removeOpcodeRawFunction · 0.80
removeOpcodeCanonicalFunction · 0.80
opcodeCodeSeparatorFunction · 0.80
TestScriptTokenizerFunction · 0.80

Calls

no outgoing calls

Tested by 2

BenchmarkScriptParsingFunction · 0.64
TestScriptTokenizerFunction · 0.64