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

◆ GetCharCount() [4/5]

override int System.Text.Latin1Encoding.GetCharCount ( byte[] bytes,
int index,
int count )
inlineinherited

Definition at line 255 of file Latin1Encoding.cs.

256 {
257 if (bytes == null)
258 {
259 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.bytes, ExceptionResource.ArgumentNull_Array);
260 }
261 if ((index | count) < 0)
262 {
263 ThrowHelper.ThrowArgumentOutOfRangeException((index < 0) ? ExceptionArgument.index : ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
264 }
265 if (bytes.Length - index < count)
266 {
267 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.bytes, ExceptionResource.ArgumentOutOfRange_IndexCountBuffer);
268 }
269 return count;
270 }

References System.bytes, System.count, System.index, System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().