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

◆ FromBase64CharArray()

static unsafe byte[] System.Convert.FromBase64CharArray ( char[] inArray,
int offset,
int length )
inlinestatic

Definition at line 3016 of file Convert.cs.

3017 {
3018 if (inArray == null)
3019 {
3020 throw new ArgumentNullException("inArray");
3021 }
3022 if (length < 0)
3023 {
3024 throw new ArgumentOutOfRangeException("length", SR.ArgumentOutOfRange_Index);
3025 }
3026 if (offset < 0)
3027 {
3028 throw new ArgumentOutOfRangeException("offset", SR.ArgumentOutOfRange_GenericPositive);
3029 }
3030 if (offset > inArray.Length - length)
3031 {
3032 throw new ArgumentOutOfRangeException("offset", SR.ArgumentOutOfRange_OffsetLength);
3033 }
3034 if (inArray.Length == 0)
3035 {
3036 return Array.Empty<byte>();
3037 }
3038 fixed (char* ptr = &inArray[0])
3039 {
3040 return FromBase64CharPtr(ptr + offset, length);
3041 }
3042 }
static unsafe byte[] FromBase64CharPtr(char *inputPtr, int inputLength)
Definition Convert.cs:3044

References System.SR.ArgumentOutOfRange_GenericPositive, System.SR.ArgumentOutOfRange_Index, System.SR.ArgumentOutOfRange_OffsetLength, System.Convert.FromBase64CharPtr(), System.length, and System.offset.