[#GetScriptOp] = GetScriptOp :mrdocs: Reads the next opcode, and any pushed data, from a script. == Synopsis Declared in `<script/script.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool GetScriptOp( xref:prevector-01/const_iterator.adoc[CScriptBase::const_iterator]& pc, xref:prevector-01/const_iterator.adoc[CScriptBase::const_iterator] end, xref:opcodetype.adoc[opcodetype]& opcodeRet, std::vector<unsigned char>* pvchRet); ---- == Return Value true if an opcode was read successfully, false on malformed input. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#