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

◆ GetByteCount() [1/7]

unsafe override int System.Text.UnicodeEncoding.GetByteCount ( char * chars,
int count )
inlinevirtual

Reimplemented from System.Text.Encoding.

Definition at line 148 of file UnicodeEncoding.cs.

149 {
150 if (chars == null)
151 {
152 throw new ArgumentNullException("chars", SR.ArgumentNull_Array);
153 }
154 if (count < 0)
155 {
156 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
157 }
158 return GetByteCount(chars, count, null);
159 }
unsafe override int GetByteCount(char[] chars, int index, int count)

References System.SR.ArgumentNull_Array, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.chars, System.count, and System.Text.UnicodeEncoding.GetByteCount().