summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/Text/DecoderNLS.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Text/DecoderNLS.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Text/DecoderNLS.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Text/DecoderNLS.cs b/src/System.Private.CoreLib/shared/System/Text/DecoderNLS.cs
index ee88c22f9d..8af4dc3a55 100644
--- a/src/System.Private.CoreLib/shared/System/Text/DecoderNLS.cs
+++ b/src/System.Private.CoreLib/shared/System/Text/DecoderNLS.cs
@@ -47,7 +47,7 @@ namespace System.Text
_fallbackBuffer?.Reset();
}
- public override unsafe int GetCharCount(byte[] bytes, int index, int count)
+ public override int GetCharCount(byte[] bytes, int index, int count)
{
return GetCharCount(bytes, index, count, false);
}
@@ -91,7 +91,7 @@ namespace System.Text
return _encoding.GetCharCount(bytes, count, this);
}
- public override unsafe int GetChars(byte[] bytes, int byteIndex, int byteCount,
+ public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
return GetChars(bytes, byteIndex, byteCount, chars, charIndex, false);