Changeset View
Changeset View
Standalone View
Standalone View
src/script/script.h
Show First 20 Lines • Show All 552 Lines • ▼ Show 20 Lines | bool GetOp2(const_iterator &pc, opcodetype &opcodeRet, | ||||
} | } | ||||
if (end() - pc < 0 || uint32_t(end() - pc) < nSize) { | if (end() - pc < 0 || uint32_t(end() - pc) < nSize) { | ||||
return false; | return false; | ||||
} | } | ||||
if (pvchRet) pvchRet->assign(pc, pc + nSize); | if (pvchRet) pvchRet->assign(pc, pc + nSize); | ||||
pc += nSize; | pc += nSize; | ||||
} | } | ||||
opcodeRet = (opcodetype)opcode; | opcodeRet = static_cast<opcodetype>(opcode); | ||||
return true; | return true; | ||||
} | } | ||||
/** Encode/decode small integers: */ | /** Encode/decode small integers: */ | ||||
static int DecodeOP_N(opcodetype opcode) { | static int DecodeOP_N(opcodetype opcode) { | ||||
if (opcode == OP_0) { | if (opcode == OP_0) { | ||||
return 0; | return 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |