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

◆ SecureString() [2/3]

unsafe System.Security.SecureString.SecureString ( char * value,
int length )
inline

Definition at line 87 of file SecureString.cs.

88 {
89 if (value == null)
90 {
91 throw new ArgumentNullException("value");
92 }
93 if (length < 0)
94 {
95 throw new ArgumentOutOfRangeException("length", SR.ArgumentOutOfRange_NeedNonNegNum);
96 }
97 if (length > 65536)
98 {
99 throw new ArgumentOutOfRangeException("length", SR.ArgumentOutOfRange_Length);
100 }
101 Initialize(new ReadOnlySpan<char>(value, length));
102 }
void Initialize(ReadOnlySpan< char > value)

References System.SR.ArgumentOutOfRange_Length, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.Security.SecureString.Initialize(), System.length, and System.value.