internal static MemoryEntry ReadNumberedArgument(FlowInputSet inSet, int number) { var argId = new VariableIdentifier(argument(number)); var argVar = inSet.ReadVariable(argId); return(argVar.ReadMemory(inSet.Snapshot)); }
/// <summary> /// Sets return storage to given value. /// </summary> /// <param name="flowSet">the flow set in which the return storage to be set is located</param> /// <param name="returnValue">the value to be set to return storage</param> public static void SetReturn(FlowInputSet flowSet, MemoryEntry returnValue) { var outSnapshot = flowSet.Snapshot; var returnVar = outSnapshot.GetLocalControlVariable(SnapshotBase.ReturnValue); returnVar.WriteMemory(outSnapshot, returnValue); }