Example #1
0
 /// <summary>
 /// 写数据
 /// </summary>
 /// <param name="stream">数据</param>
 public void Write(charStream stream)
 {
     if (stream != null)
     {
         prepLength(stream.Length);
         Buffer.BlockCopy(stream.array, 0, array, Length << 1, stream.Length << 1);
         Length += stream.Length;
     }
 }
Example #2
0
 public unsafe static void joinString(this subArray <int> array, charStream stream, char join, bool isNull = false)
 {
     if (array.length == 0)
     {
         if (isNull)
         {
             fastCSharp.web.ajax.WriteNull(stream);
         }
         return;
     }
     fastCSharp.emit.numberToCharStream <int> .NumberJoinChar(stream, array.array, array.startIndex, array.length, join, isNull);
 }
Example #3
0
 /// <summary>
 /// 写数据
 /// </summary>
 /// <param name="stream">数据,不能为null</param>
 public void Write(charStream stream)
 {
     Buffer.BlockCopy(stream.array, 0, Stream.array, Stream.Length << 1, stream.Length << 1);
     Stream.Length += stream.Length;
 }
Example #4
0
 public static void ToXml <valueType>(this valueType value, charStream xmlStream, fastCSharp.emit.xmlSerializer.config config = null)
 {
     fastCSharp.emit.xmlSerializer.ToXml(value, xmlStream, config);
 }
Example #5
0
 public static void ToJson <valueType>(this valueType value, charStream jsonStream, fastCSharp.emit.jsonSerializer.config config = null)
 {
     fastCSharp.emit.jsonSerializer.ToJson(value, jsonStream, config);
 }
Example #6
0
 internal void UnsafeWrite(charStream stream)
 {
     fastCSharp.unsafer.memory.Copy(stream.CurrentData, CurrentData, stream.length);
     length += stream.length;
 }
Example #7
0
 /// <summary>
 /// 写数据
 /// </summary>
 /// <param name="stream">数据,不能为null</param>
 public void Write(charStream stream)
 {
     Buffer.BlockCopy(stream.array, 0, Stream.array, Stream.Length << 1, stream.Length << 1);
     Stream.Length += stream.Length;
 }
Example #8
0
 /// <summary>
 /// 写数据
 /// </summary>
 /// <param name="stream">数据</param>
 public void Write(charStream stream)
 {
     if (stream != null)
     {
         prepLength(stream.Length);
         Buffer.BlockCopy(stream.array, 0, array, Length << 1, stream.Length << 1);
         Length += stream.Length;
     }
 }
Example #9
0
 internal unsafe static void ToSqlMillisecond(DateTime time, charStream charStream)
 {
     toSqlMillisecond(time, charStream.CurrentChar);
     charStream.UnsafeAddLength(SqlMillisecondSize);
 }