Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetCharCount() [1/5]

virtual unsafe int System.Text.Encoding.GetCharCount ( byte * bytes,
int count )
inlinevirtualinherited

Reimplemented in System.Text.ConsoleEncoding, System.Text.ConsoleEncoding, System.Formats.Asn1.SpanBasedEncoding, System.Formats.Asn1.T61Encoding, System.Text.ASCIIEncoding, System.Text.Latin1Encoding, System.Text.UnicodeEncoding, System.Text.UTF32Encoding, System.Text.UTF7Encoding, System.Text.UTF8Encoding, and System.Text.EncodingNLS.

Definition at line 899 of file Encoding.cs.

900 {
901 if (bytes == null)
902 {
903 throw new ArgumentNullException("bytes", SR.ArgumentNull_Array);
904 }
905 if (count < 0)
906 {
907 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
908 }
909 byte[] bytes2 = new ReadOnlySpan<byte>(bytes, count).ToArray();
910 return GetCharCount(bytes2, 0, count);
911 }
virtual int GetCharCount(byte[] bytes)
Definition Encoding.cs:887

References System.SR.ArgumentNull_Array, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.bytes, System.count, and System.Text.Encoding.GetCharCount().