3 writes to _xmlnsBuffer
System.Private.DataContractSerialization (3)
System\Xml\XmlCanonicalWriter.cs (3)
125
_xmlnsBuffer
= null;
346
_xmlnsBuffer
= new byte[Math.Max(byteCount, 128)];
352
_xmlnsBuffer
= newBuffer;
23 references to _xmlnsBuffer
System.Private.DataContractSerialization (23)
System\Xml\XmlCanonicalWriter.cs (23)
122
if (
_xmlnsBuffer
!= null &&
_xmlnsBuffer
.Length > 1024)
254
if (string.Equals(Encoding.UTF8.GetString(
_xmlnsBuffer
!, xmlnsAttribute.prefixOffset, xmlnsAttribute.prefixLength), _inclusivePrefixes[i], StringComparison.Ordinal))
279
Debug.Assert(
_xmlnsBuffer
!= null);
280
if (Equals(
_xmlnsBuffer
, _xmlnsAttributes![i].prefixOffset, _xmlnsAttributes[i].prefixLength,
_xmlnsBuffer
, _xmlnsAttributes[j].prefixOffset, _xmlnsAttributes[j].prefixLength))
283
if (Equals(
_xmlnsBuffer
, _xmlnsAttributes[i].nsOffset, _xmlnsAttributes[i].nsLength,
_xmlnsBuffer
, _xmlnsAttributes[j].nsOffset, _xmlnsAttributes[j].nsLength))
341
[MemberNotNull(nameof(
_xmlnsBuffer
))]
344
if (
_xmlnsBuffer
== null)
348
else if (_xmlnsOffset + byteCount >
_xmlnsBuffer
.Length)
350
byte[] newBuffer = new byte[Math.Max(_xmlnsOffset + byteCount,
_xmlnsBuffer
.Length * 2)];
351
Buffer.BlockCopy(
_xmlnsBuffer
, 0, newBuffer, 0, _xmlnsOffset);
371
xmlnsAttribute.prefixLength = Encoding.UTF8.GetBytes(prefix, 0, prefix.Length,
_xmlnsBuffer
, _xmlnsOffset);
374
xmlnsAttribute.nsLength = Encoding.UTF8.GetBytes(ns, 0, ns.Length,
_xmlnsBuffer
, _xmlnsOffset);
405
Buffer.BlockCopy(prefixBuffer, prefixOffset,
_xmlnsBuffer
, _xmlnsOffset, prefixLength);
409
Buffer.BlockCopy(nsBuffer, nsOffset,
_xmlnsBuffer
, _xmlnsOffset, nsLength);
623
Debug.Assert(
_xmlnsBuffer
!= null);
624
_writer.WriteXmlnsAttribute(
_xmlnsBuffer
, xmlnsAttribute.prefixOffset, xmlnsAttribute.prefixLength,
_xmlnsBuffer
, xmlnsAttribute.nsOffset, xmlnsAttribute.nsLength);
747
_xmlnsBuffer
!, _xmlnsAttributes![j].prefixOffset, _xmlnsAttributes[j].prefixLength))
799
return Compare(
_xmlnsBuffer
!,
806
int s = Compare(
_xmlnsBuffer
!,