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