Remove encoding allocations for System.Security.Xml (#76364)
authorKrzysztof Wicher <mordotymoja@gmail.com>
Mon, 3 Oct 2022 23:31:18 +0000 (01:31 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Oct 2022 23:31:18 +0000 (01:31 +0200)
commitca994afc109df80150ed041af599d15060c26b25
treec70ac3cf2da75f98b345ebc77cf371acd76b70e1
parent1cce2df9a675c11df31f956df64a0d40cfc69a42
Remove encoding allocations for System.Security.Xml (#76364)

* Remove encoding allocations for System.Security.Xml

* Use Encoding.UTF8 directly
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXml.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlAttribute.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlCDataSection.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlComment.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlElement.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlProcessingInstruction.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlSignificantWhitespace.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlText.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlWhitespace.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/ExcCanonicalXml.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/XmlDsigBase64Transform.cs