4 #include <llvm/ADT/APInt.h> 14 auto pushInst = *_curr;
17 llvm::APInt value(256, 0);
19 for (decltype(numBytes) i = 0; i < numBytes; ++i)
21 byte b = (_curr != _end) ? *_curr++ : 0;
31 auto pushInst = *_curr;
35 for (decltype(numBytes) i = 0; i < numBytes && _curr < _end; ++i, ++_curr) {}
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
assert(len-trim+(2 *lenIndices)<=WIDTH)
Instruction
Virtual machine bytecode instruction.
byte const * code_iterator
void skipPushData(code_iterator &_curr, code_iterator _end)
Skips PUSH data in pointed fragment of bytecode.
llvm::APInt readPushData(code_iterator &_curr, code_iterator _end)
Reads PUSH data from pointed fragment of bytecode and constructs number out of it Reading out of byte...
place 1 byte item on stack
place 32 byte item on stack