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

◆ GetCharCount() [1/5]

unsafe override int System.Text.Latin1Encoding.GetCharCount ( byte * bytes,
int count )
inlinevirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 233 of file Latin1Encoding.cs.

234 {
235 if (bytes == null)
236 {
237 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.bytes);
238 }
239 if (count < 0)
240 {
241 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_NeedNonNegNum);
242 }
243 return count;
244 }

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