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

◆ ReadAsyncInternal()

async ValueTask< int > System.Security.Cryptography.CryptoStream.ReadAsyncInternal ( Memory< byte > buffer,
CancellationToken cancellationToken = default(CancellationToken) )
inlineprivate

Definition at line 223 of file CryptoStream.cs.

224 {
225 await AsyncActiveSemaphore.WaitAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
226 try
227 {
228 return await ReadAsyncCore(buffer, cancellationToken, useAsync: true).ConfigureAwait(continueOnCapturedContext: false);
229 }
230 finally
231 {
233 }
234 }
async ValueTask< int > ReadAsyncCore(Memory< byte > buffer, CancellationToken cancellationToken, bool useAsync)
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

References System.Security.Cryptography.CryptoStream._lazyAsyncActiveSemaphore, System.Security.Cryptography.CryptoStream.AsyncActiveSemaphore, System.buffer, System.cancellationToken, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Security.Cryptography.CryptoStream.ReadAsyncCore(), System.Threading.SemaphoreSlim.Release(), and System.Threading.SemaphoreSlim.WaitAsync().

Referenced by System.Security.Cryptography.CryptoStream.ReadAsync(), and System.Security.Cryptography.CryptoStream.ReadAsync().