/// <summary>
 /// Writes a BloomFilter as a byte array as well as the number of hash functions used to construct this BloomFilter
 /// </summary>
 /// <param name="filter">the BloomFilter to write</param>
 /// <seealso cref="BloomFilter.Filter"/>
 public void WriteFilter(BloomFilter.Filter<long> filter)
 {
     this.Write(new SqlBinary(filter.convertToByteArray()));
     this.Write((short) filter.hashFunctionCount);
 }