private void ProcessPseudoCode(PseudoOpCodes expected, ref int offset) { // auto reduce scope (PseudoCode data at the end) instructionsSize = (uint) Math.Min(instructionsSize, offset); var poc = (PseudoOpCodes) ReadShort(ref offset); if (poc != expected) throw new MalformedException("Unexpected Pseudo-code identifier"); }