protected override bool call(AutoCSer.WebView.CallBase call, ref AutoCSer.UnmanagedStream responseStream)
 {
     switch (call.CallMethodIndex)
     {
     default: return(false);
     }
 }
예제 #2
0
 protected override bool call(AutoCSer.WebView.CallBase call, ref AutoCSer.UnmanagedStream responseStream)
 {
     switch (call.CallMethodIndex)
     {
         case 1:
             {
                         {
                             AutoCSer.Web.LocationIndex value = (AutoCSer.Web.LocationIndex)call;
                             value.Load();
                             repsonseCall(value, ref responseStream);
                             return true;
                         }
             }
         default: return false;
     }
 }
        protected override bool call(AutoCSer.WebView.CallBase call, ref AutoCSer.UnmanagedStream responseStream)
        {
            switch (call.CallMethodIndex)
            {
            case 1:
            {
                {
                    AutoCSer.TestCase.SqlTableWeb.Index value = (AutoCSer.TestCase.SqlTableWeb.Index)call;
                    value.Load();
                    repsonseCall(value, ref responseStream);
                    return(true);
                }
            }

            default: return(false);
            }
        }
예제 #4
0
        protected override bool call(AutoCSer.WebView.CallBase call, ref AutoCSer.UnmanagedStream responseStream)
        {
            switch (call.CallMethodIndex)
            {
            case 1:
            {
                _p1 parameter = new _p1();
                if (call.ParseParameter(ref parameter))
                {
                    AutoCSer.TestCase.WebPerformance.WebCall value = (AutoCSer.TestCase.WebPerformance.WebCall)call;
                    value.Add(parameter.left, parameter.right);
                    repsonseCall(value, ref responseStream);
                    return(true);
                }
            }
                return(false);

            default: return(false);
            }
        }
예제 #5
0
        /// <summary>
        /// 写数值
        /// </summary>
        /// <param name="value">数值</param>
        /// <param name="stream"></param>
        internal void Write(long value, UnmanagedStream stream)
        {
            char *write  = (char *)stream.GetPrepSizeCurrent(22 * sizeof(char));
            int   length = AutoCSer.Extensions.NumberExtension.ToString(value, write);

            if ((Type & EncodingType.Unicode) == 0)
            {
                if ((Type & EncodingType.CompatibleAscii) != 0)
                {
                    AutoCSer.Extensions.StringExtension.WriteBytes(write, length, (byte *)write);
                    stream.Data.CurrentIndex += length;
                }
                else
                {
                    int size = Encoding.GetByteCount(write, length);
                    Encoding.GetBytes(write, length, (byte *)write, size);
                    stream.Data.CurrentIndex += size;
                }
            }
            else
            {
                stream.Data.CurrentIndex += length << 1;
            }
        }
예제 #6
0
 internal void WriteBytesNotEmpty(string value, UnmanagedStream stream)
 {
     fixed(char *valueFixed = value) WriteBytes(valueFixed, value.Length, stream);
 }
예제 #7
0
 /// <summary>
 /// URL 哈希字符
 /// </summary>
 /// <param name="stream"></param>
 internal void WriteUrlHash(UnmanagedStream stream)
 {
     if ((Type & EncodingType.CompatibleAscii) != 0)
         stream.Write(*urlHashAscii.Short); }