public void Dispose() { if (!Disposed) { Disposed = true; zip.Dispose(); file.Dispose(); BufCursor = -1; } }
public void Dispose() { if (!Disposed) { Disposed = true; if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { Syscall.posix_fadvise((int)file.SafeFileHandle.DangerousGetHandle(), 0, 0, PosixFadviseAdvice.POSIX_FADV_DONTNEED); } zip.Dispose(); file.Dispose(); } }