예제 #1
0
        internal static MemoryEntry ReadNumberedArgument(FlowInputSet inSet, int number)
        {
            var argId  = new VariableIdentifier(argument(number));
            var argVar = inSet.ReadVariable(argId);

            return(argVar.ReadMemory(inSet.Snapshot));
        }
예제 #2
0
        /// <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);
        }