8 writes to _trailByteCount
System.Private.DataContractSerialization (8)
28 references to _trailByteCount
System.Private.DataContractSerialization (28)
System\Xml\XmlBaseWriter.cs (28)
1467if (_trailByteCount > 0)
1469while (_trailByteCount < 3 && count > 0)
1476int totalByteCount = _trailByteCount + count;
1485WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
1486WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(buffer, offset, actualByteCount - _trailByteCount));
1492_writer.WriteBase64Text(_trailBytes, _trailByteCount, buffer, offset, actualByteCount - _trailByteCount);
1497if (_trailByteCount > 0)
1499int trailOffset = offset + count - _trailByteCount;
1500for (int i = 0; i < _trailByteCount; i++)
1506Buffer.BlockCopy(buffer, offset, _trailBytes, _trailByteCount, count);
1526if (_trailByteCount > 0)
1528while (_trailByteCount < 3 && count > 0)
1535int totalByteCount = _trailByteCount + count;
1544WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
1545WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(buffer, offset, actualByteCount - _trailByteCount));
1550await _writer.WriteBase64TextAsync(_trailBytes, _trailByteCount, buffer, offset, actualByteCount - _trailByteCount).ConfigureAwait(false);
1554if (_trailByteCount > 0)
1556int trailOffset = offset + count - _trailByteCount;
1557for (int i = 0; i < _trailByteCount; i++)
1563Buffer.BlockCopy(buffer, offset, _trailBytes, _trailByteCount, count);
1732if (_trailByteCount > 0)
1740return _trailByteCount > 0 ? FlushTrailBytesAsync() : Task.CompletedTask;
1748WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
1753_writer.WriteBase64Text(_trailBytes, _trailByteCount, _trailBytes, 0, 0);
1764WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
1769await _writer.WriteBase64TextAsync(_trailBytes, _trailByteCount, _trailBytes, 0, 0).ConfigureAwait(false);