Reads the next opcode, and any pushed data, from a script.

Synopsis

Declared in <script/script.h>

bool
GetScriptOp(
    CScriptBase::const_iterator& pc,
    CScriptBase::const_iterator end,
    opcodetype& opcodeRet,
    std::vector<unsigned char>* pvchRet);

Return Value

true if an opcode was read successfully, false on malformed input.

Parameters

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.

Created with MrDocs