コード例 #1
0
        /// <summary>
        /// Create an output point from a hash and index pair.
        /// </summary>
        /// <param name="pointHash"></param>
        /// <param name="index"></param>
        public OutputPoint(byte[] pointHash, UInt32 index)
        {
            var managedHash = new hash_t
            {
                hash = pointHash
            };

            NativeInstance    = OutputPointNative.chain_output_point_construct_from_hash_index(managedHash, index);
            ownsNativeObject_ = true;
        }
コード例 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         //Release managed resources and call Dispose for member variables
     }
     //Release unmanaged resources
     if (ownsNativeObject_)
     {
         OutputPointNative.chain_output_point_destruct(NativeInstance);
     }
 }
コード例 #3
0
 /// <summary>
 /// Create an empty output point.
 /// </summary>
 public OutputPoint()
 {
     NativeInstance    = OutputPointNative.chain_output_point_construct();
     ownsNativeObject_ = true;
 }