Exemple #1
0
 private void dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             Memory?.Unmap();
             Handle?.DestroyBuffer(null);
             Memory?.Free();
         }
     }
     IsDisposed = true;
 }
Exemple #2
0
 protected internal override void Destroy()
 {
     Memory.Unmap();
     Buffer.DestroyBuffer(null);
     Memory.Free();
 }