The readByte
and readInt
are inline methods. The problem is that the readInt
call is actually executed first, so i get wrong OPCODE, cause it is already poped by thereadInt
call. Is it normal? I think they should be performed in order as they appear in source code.
log << "OPCODE: " << std::hex << (unsigned int)bytes.readByte() << ", DIFF: " << bytes.readInt() << std::endl;