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

◆ Convert() [2/2]

static byte[] System.Text.Encoding.Convert ( Encoding srcEncoding,
Encoding dstEncoding,
byte[] bytes,
int index,
int count )
inlinestaticinherited

Definition at line 575 of file Encoding.cs.

576 {
577 if (srcEncoding == null || dstEncoding == null)
578 {
579 throw new ArgumentNullException((srcEncoding == null) ? "srcEncoding" : "dstEncoding", SR.ArgumentNull_Array);
580 }
581 if (bytes == null)
582 {
583 throw new ArgumentNullException("bytes", SR.ArgumentNull_Array);
584 }
585 return dstEncoding.GetBytes(srcEncoding.GetChars(bytes, index, count));
586 }

References System.SR.ArgumentNull_Array, System.bytes, System.count, and System.index.