/// <summary> /// Adds an outpoint to the list of elements that will be used for building the filter. /// </summary> /// <param name="outpoint">The outpoint.</param> /// <returns>The updated filter builder instance.</returns> public GolombRiceFilterBuilder AddOutPoint(OutPoint outpoint) { if (outpoint == null) { throw new ArgumentNullException(nameof(outpoint)); } MemoryStream ms = new MemoryStream(32 + 4); outpoint.ReadWrite(new BitcoinStream(ms, true)); _values.Add(ms.ToArrayEfficient()); return(this); }