예제 #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;
     }
 }
예제 #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);
 }
예제 #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;
 }
예제 #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);
 }
예제 #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);
 }
예제 #6
0
 internal void UnsafeWrite(charStream stream)
 {
     fastCSharp.unsafer.memory.Copy(stream.CurrentData, CurrentData, stream.length);
     length += stream.length;
 }
예제 #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;
 }
예제 #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;
     }
 }
예제 #9
0
파일: date.cs 프로젝트: iLanceS/fastCSharp
 internal unsafe static void ToSqlMillisecond(DateTime time, charStream charStream)
 {
     toSqlMillisecond(time, charStream.CurrentChar);
     charStream.UnsafeAddLength(SqlMillisecondSize);
 }