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

◆ GetByteCount() [7/7]

unsafe int System.Text.Encoding.GetByteCount ( string s,
int index,
int count )
inlineinherited

Definition at line 734 of file Encoding.cs.

735 {
736 if (s == null)
737 {
738 throw new ArgumentNullException("s", SR.ArgumentNull_String);
739 }
740 if (index < 0)
741 {
742 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
743 }
744 if (count < 0)
745 {
746 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
747 }
748 if (index > s.Length - count)
749 {
750 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_IndexCount);
751 }
752 fixed (char* ptr = s)
753 {
754 return GetByteCount(ptr + index, count);
755 }
756 }
virtual int GetByteCount(char[] chars)
Definition Encoding.cs:713

References System.SR.ArgumentNull_String, System.SR.ArgumentOutOfRange_IndexCount, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, System.Runtime.Serialization.Dictionary, System.Text.Encoding.GetByteCount(), System.index, and System.s.