Пример #1
0
        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;
        }
Пример #2
0
 unsafe internal CompactCiphertextBallot(NativeCompactCiphertextBallot handle)
 {
     Handle = handle;
 }