terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Dispose() [2/2]

override void System.IO.FileStream.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from System.IO.Stream.

Reimplemented in System.Net.FileWebStream.

Definition at line 484 of file FileStream.cs.

485 {
487 long num;
488 if (safeFileHandle != null)
489 {
491 this.FlushBuffer();
492 if (this.owner)
493 {
495 IntPtr handle = safeFileHandle2.handle;
496 if (safeFileHandle2 == null)
497 {
499 return;
500 }
501 goto IL_007C;
502 }
503 }
504 else
505 {
506 num = 0L;
507 }
508 if (this.buf == null)
509 {
510 }
511 GC.SuppressFinalize(this);
512 if (num == 0L)
513 {
514 return;
515 }
516 IL_007C:
517 string text = this.name;
518 string secureFileName = this.GetSecureFileName(text);
519 throw new OutOfMemoryException();
520 }
class f__AnonymousType0<< Count > j__TPar
static void SuppressFinalize(object obj)
Definition GC.cs:116
SafeFileHandle safeHandle
string GetSecureFileName(string filename)

References System.IO.FileStream.buf, System.Runtime.InteropServices.SafeHandle.DangerousRelease(), System.IO.FileStream.FlushBuffer(), System.IO.FileStream.GetSecureFileName(), System.Runtime.InteropServices.SafeHandle.IsClosed, j__TPar, System.L, System.IO.FileStream.name, System.IO.FileStream.owner, System.IO.FileStream.safeHandle, System.GC.SuppressFinalize(), and System.text.