CScript::GetOp

Reads the next opcode and its pushed data.

Synopsis

Declared in <script/script.h>

bool
GetOp(
    const_iterator& pc,
    opcodetype& opcodeRet,
    std::vector<unsigned char>& vchRet) const;

Return Value

true if an opcode was read successfully.

Parameters

NameDescription
pcIn/out iterator advanced past the opcode.
opcodeRetSet to the opcode that was read.
vchRetSet to the data pushed by the opcode.