/// <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; } }
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); }
/// <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; }
public static void ToXml <valueType>(this valueType value, charStream xmlStream, fastCSharp.emit.xmlSerializer.config config = null) { fastCSharp.emit.xmlSerializer.ToXml(value, xmlStream, config); }
public static void ToJson <valueType>(this valueType value, charStream jsonStream, fastCSharp.emit.jsonSerializer.config config = null) { fastCSharp.emit.jsonSerializer.ToJson(value, jsonStream, config); }
internal void UnsafeWrite(charStream stream) { fastCSharp.unsafer.memory.Copy(stream.CurrentData, CurrentData, stream.length); length += stream.length; }
internal unsafe static void ToSqlMillisecond(DateTime time, charStream charStream) { toSqlMillisecond(time, charStream.CurrentChar); charStream.UnsafeAddLength(SqlMillisecondSize); }