1 write to writer
System.Runtime.Serialization (1)
System\Xml\XmlBaseWriter.cs (1)
2489
this.
writer
= writer;
28 references to writer
System.Runtime.Serialization (28)
System\Xml\XmlBaseWriter.cs (28)
2508
if (this.
writer
.trailByteCount > 0)
2511
while (this.
writer
.trailByteCount < 3 && this.count > 0)
2513
this.
writer
.trailBytes[this.
writer
.trailByteCount++] = this.buffer[this.offset++];
2518
this.totalByteCount = this.
writer
.trailByteCount + this.count;
2521
if (this.
writer
.trailBytes == null)
2523
this.
writer
.trailBytes = new byte[3];
2528
if (this.
writer
.attributeValue != null)
2530
this.
writer
.WriteAttributeText(XmlConverter.Base64Encoding.GetString(this.
writer
.trailBytes, 0, this.
writer
.trailByteCount));
2531
this.
writer
.WriteAttributeText(XmlConverter.Base64Encoding.GetString(this.buffer, this.offset, actualByteCount - this.
writer
.trailByteCount));
2539
Buffer.BlockCopy(this.buffer, this.offset, this.
writer
.trailBytes, this.
writer
.trailByteCount, this.count);
2540
this.
writer
.trailByteCount += this.count;
2593
if (!
writer
.isXmlnsAttribute)
2607
this.
writer
.StartContent();
2608
this.nodeWriterArgs.TrailBuffer = this.
writer
.trailBytes;
2609
this.nodeWriterArgs.TrailCount = this.
writer
.trailByteCount;
2612
this.nodeWriterArgs.Count = this.actualByteCount - this.
writer
.trailByteCount;
2615
if (this.
writer
.writer.WriteBase64TextAsync(this.nodeWriterAsyncState) != AsyncCompletionResult.Completed)
2623
this.
writer
.EndContent();
2626
this.
writer
.trailByteCount = (this.totalByteCount - this.actualByteCount);
2627
if (this.
writer
.trailByteCount > 0)
2629
int trailOffset = offset + count - this.
writer
.trailByteCount;
2630
for (int i = 0; i < this.
writer
.trailByteCount; i++)
2631
this.
writer
.trailBytes[i] = this.buffer[trailOffset++];