예제 #1
0
 // 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;
 }
예제 #2
0
        private void Dispose(bool disposing)
        {
            if (cctx == IntPtr.Zero)
            {
                return;
            }

            ExternMethods.ZSTD_freeCCtx(cctx);

            cctx = IntPtr.Zero;
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
 protected override bool ReleaseHandle()
 => (!IsInvalid && ExternMethods.ZSTD_freeCCtx(handle) == UIntPtr.Zero);