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)
122if (_xmlnsBuffer != null && _xmlnsBuffer.Length > 1024) 254if (string.Equals(Encoding.UTF8.GetString(_xmlnsBuffer!, xmlnsAttribute.prefixOffset, xmlnsAttribute.prefixLength), _inclusivePrefixes[i], StringComparison.Ordinal)) 279Debug.Assert(_xmlnsBuffer != null); 280if (Equals(_xmlnsBuffer, _xmlnsAttributes![i].prefixOffset, _xmlnsAttributes[i].prefixLength, _xmlnsBuffer, _xmlnsAttributes[j].prefixOffset, _xmlnsAttributes[j].prefixLength)) 283if (Equals(_xmlnsBuffer, _xmlnsAttributes[i].nsOffset, _xmlnsAttributes[i].nsLength, _xmlnsBuffer, _xmlnsAttributes[j].nsOffset, _xmlnsAttributes[j].nsLength)) 341[MemberNotNull(nameof(_xmlnsBuffer))] 344if (_xmlnsBuffer == null) 348else if (_xmlnsOffset + byteCount > _xmlnsBuffer.Length) 350byte[] newBuffer = new byte[Math.Max(_xmlnsOffset + byteCount, _xmlnsBuffer.Length * 2)]; 351Buffer.BlockCopy(_xmlnsBuffer, 0, newBuffer, 0, _xmlnsOffset); 371xmlnsAttribute.prefixLength = Encoding.UTF8.GetBytes(prefix, 0, prefix.Length, _xmlnsBuffer, _xmlnsOffset); 374xmlnsAttribute.nsLength = Encoding.UTF8.GetBytes(ns, 0, ns.Length, _xmlnsBuffer, _xmlnsOffset); 405Buffer.BlockCopy(prefixBuffer, prefixOffset, _xmlnsBuffer, _xmlnsOffset, prefixLength); 409Buffer.BlockCopy(nsBuffer, nsOffset, _xmlnsBuffer, _xmlnsOffset, nsLength); 623Debug.Assert(_xmlnsBuffer != null); 624_writer.WriteXmlnsAttribute(_xmlnsBuffer, xmlnsAttribute.prefixOffset, xmlnsAttribute.prefixLength, _xmlnsBuffer, xmlnsAttribute.nsOffset, xmlnsAttribute.nsLength); 747_xmlnsBuffer!, _xmlnsAttributes![j].prefixOffset, _xmlnsAttributes[j].prefixLength)) 799return Compare(_xmlnsBuffer!, 806int s = Compare(_xmlnsBuffer!,