protected override unsafe void DisposeUnmanaged() { base.DisposeUnmanaged(); if (Handle == null) { return; } var status = NativeInterface.CompactCiphertextBallot.Free(Handle); if (status != Status.ELECTIONGUARD_STATUS_SUCCESS) { Console.WriteLine($"CompactCiphertextBallot Error DisposeUnmanaged: {status}"); } Handle = null; }
unsafe internal CompactCiphertextBallot(NativeCompactCiphertextBallot handle) { Handle = handle; }