Reads the next opcode, and any pushed data, from a script.
Declared in <script/script.h>
bool
GetScriptOp(
CScriptBase::const_iterator& pc,
CScriptBase::const_iterator end,
opcodetype& opcodeRet,
std::vector<unsigned char>* pvchRet);
true if an opcode was read successfully, false on malformed input.
| Name | Description |
|---|---|
| pc | In/out iterator to the current position; advanced past the opcode. |
| end | Iterator to the end of the script. |
| opcodeRet | Set to the opcode that was read. |
| pvchRet | If not null, set to the data pushed by the opcode. |