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

◆ AppendChar()

void System.Security.SecureString.AppendChar ( char c)
inline

Definition at line 145 of file SecureString.cs.

146 {
147 lock (_methodLock)
148 {
151 SafeBuffer bufferToRelease = null;
152 try
153 {
156 AcquireSpan(ref bufferToRelease)[_decryptedLength] = c;
158 }
159 finally
160 {
162 bufferToRelease?.DangerousRelease();
163 }
164 }
165 }
unsafe Span< char > AcquireSpan(ref SafeBuffer bufferToRelease)
void EnsureCapacity(int capacity)

References System.Security.SecureString._decryptedLength, System.Security.SecureString._methodLock, System.Security.SecureString.AcquireSpan(), System.Runtime.InteropServices.SafeHandle.DangerousRelease(), System.Security.SecureString.EnsureCapacity(), System.Security.SecureString.EnsureNotDisposed(), System.Security.SecureString.EnsureNotReadOnly(), System.Security.SecureString.ProtectMemory(), and System.Security.SecureString.UnprotectMemory().