// Token: 0x0600000E RID: 14 RVA: 0x000021CF File Offset: 0x000003CF private void Dispose(bool disposing) { if (this.disposed) { return; } ExternMethods.ZSTD_freeCCtx(this.cctx); this.disposed = true; }
private void Dispose(bool disposing) { if (cctx == IntPtr.Zero) { return; } ExternMethods.ZSTD_freeCCtx(cctx); cctx = IntPtr.Zero; }
private void Dispose(bool disposing) { if (disposed) { return; } disposed = true; if (cdict != IntPtr.Zero) { ExternMethods.ZSTD_freeCDict(cdict); } ExternMethods.ZSTD_freeCCtx(cctx); if (disposing) { GC.SuppressFinalize(this); } }
protected override bool ReleaseHandle() => (!IsInvalid && ExternMethods.ZSTD_freeCCtx(handle) == UIntPtr.Zero);