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

◆ Dispose() [2/2]

override void System.Security.Cryptography.CryptoStream.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from System.IO.Stream.

Definition at line 644 of file CryptoStream.cs.

645 {
646 try
647 {
648 if (disposing)
649 {
651 {
653 }
654 if (!_leaveOpen)
655 {
657 }
658 }
659 }
660 finally
661 {
662 try
663 {
665 if (_inputBuffer != null)
666 {
667 Array.Clear(_inputBuffer);
668 }
669 if (_outputBuffer != null)
670 {
671 Array.Clear(_outputBuffer);
672 }
673 _inputBuffer = null;
674 _outputBuffer = null;
675 _canRead = false;
676 _canWrite = false;
677 }
678 finally
679 {
680 base.Dispose(disposing);
681 }
682 }
683 }
void Dispose()
Definition Stream.cs:639

References System.Security.Cryptography.CryptoStream._canRead, System.Security.Cryptography.CryptoStream._canWrite, System.Security.Cryptography.CryptoStream._finalBlockTransformed, System.Security.Cryptography.CryptoStream._inputBuffer, System.Security.Cryptography.CryptoStream._leaveOpen, System.Security.Cryptography.CryptoStream._outputBuffer, System.Security.Cryptography.CryptoStream._stream, System.Array.Clear(), System.IO.Stream.Dispose(), and System.Security.Cryptography.CryptoStream.FlushFinalBlock().