Fast-path for ASCII & UTF8 Encoding ASCII data (#8969)
authorBen Adams <thundercat@illyriad.co.uk>
Tue, 24 Jan 2017 21:21:52 +0000 (21:21 +0000)
committerTarek Mahmoud Sayed <tarekms@microsoft.com>
Tue, 24 Jan 2017 21:21:52 +0000 (13:21 -0800)
commit5c20488da0d06c14f8d28e9bade3e8e6d8cd970f
tree4e7f1082c2b142aa07ea2b5c48a8e6c92f9738e4
parenta4049636da7ba109629cd277dd2f12e1466d4e6f
Fast-path for ASCII & UTF8 Encoding ASCII data (#8969)

* ASCII Encoding fast-path

* Add skipp for BIGENDIAN

* fixes

* ascii  GetBytes(char[] chars) fix

* feedback

* Clean up

* Reuse exception block

* Add debug Asserts
src/mscorlib/src/System/Text/ASCIIEncoding.cs
src/mscorlib/src/System/Text/EncoderNLS.cs
src/mscorlib/src/System/Text/Encoding.cs
src/mscorlib/src/System/Text/EncodingForwarder.cs
src/mscorlib/src/System/Text/UTF8Encoding.cs
src/mscorlib/src/System/ThrowHelper.cs