Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                //Release managed resources and call Dispose for member variables
            }
            //Release unmanaged resources

            BinaryNative.kth_core_binary_destruct(nativeInstance_);
        }
Beispiel #2
0
 /// <summary>
 /// Creates a binary filter from an int array.
 /// </summary>
 /// <param name="bitsSize"> Elements size </param>
 /// <param name="blocks"> Filter representation. Example: '[186,173,240,13]'. </param>
 /// <param name="n"> Array length in amount of elements. </param>
 public Binary(UInt64 bitsSize, byte[] blocks, UInt64 n)
 {
     nativeInstance_ = BinaryNative.kth_core_binary_construct_blocks((UIntPtr)bitsSize, blocks, (UIntPtr)n);
 }
Beispiel #3
0
 /// <summary>
 /// Creates a binary filter from a binary string.
 /// </summary>
 /// <param name="hexString">  Binary string. Example: '10111010101011011111000000001101' </param>
 public Binary(string hexString)
 {
     nativeInstance_ = BinaryNative.kth_core_binary_construct_string(hexString);
 }
Beispiel #4
0
 /// <summary>
 /// Create an empty binary object.
 /// </summary>
 public Binary()
 {
     nativeInstance_ = BinaryNative.kth_core_binary_construct();
 }