Beispiel #1
0
        public static StackValue ConcatString(StackValue op1, StackValue op2, ProtoCore.Runtime.RuntimeMemory rmem)
        {
            StackValue[] v1  = (AddressType.String == op1.optype) ? rmem.GetArrayElements(op1) : new StackValue[] { op1 };
            StackValue[] v2  = (AddressType.String == op2.optype) ? rmem.GetArrayElements(op2) : new StackValue[] { op2 };
            StackValue   tmp = rmem.BuildArray(v1.Concat(v2).ToArray());

            return(StackUtils.BuildString(tmp.opdata));
        }
Beispiel #2
0
        public static StackValue ConcatString(StackValue op1, StackValue op2, ProtoCore.Runtime.RuntimeMemory rmem)
        {
            StackValue[] v1  = op1.IsString ? rmem.GetArrayElements(op1) : new StackValue[] { op1 };
            StackValue[] v2  = op2.IsString ? rmem.GetArrayElements(op2) : new StackValue[] { op2 };
            StackValue   tmp = rmem.BuildArray(v1.Concat(v2).ToArray());

            return(StackValue.BuildString(tmp.opdata));
        }