Add adds d to the filter. Future calls of Test(d) will return true.
(d *big.Int)
| 58 | |
| 59 | // Add adds d to the filter. Future calls of Test(d) will return true. |
| 60 | func (b *Bloom) Add(d *big.Int) { |
| 61 | bin := new(big.Int).SetBytes(b[:]) |
| 62 | bin.Or(bin, bloom9(d.Bytes())) |
| 63 | b.SetBytes(bin.Bytes()) |
| 64 | } |
| 65 | |
| 66 | // Big converts b to a big integer. |
| 67 | func (b Bloom) Big() *big.Int { |