func (s *ScalableBloomFilter) Capacity() uint {
	capacity := uint(0)
	for _, bf := range s.filters {
		capacity += bf.Capacity()
	}
	return capacity
}
Capacity returns the current Scalable Bloom Filter capacity, which is the
sum of the capacities for the contained series of Bloom filters.
package boom
import (
	"bytes"
	"encoding/binary"
	"hash"
	"io"
	"math"
)
type ScalableBloomFilter struct {
	filters []*PartitionedBloomFilter  
	r       float64                    
	fp      float64                    
	p       float64                    
	hint    uint                       
}
func NewScalableBloomFilter(hint uint, fpRate, r float64) *ScalableBloomFilter {
	s := &ScalableBloomFilter{
		filters: make([]*PartitionedBloomFilter, 0, 1),
		r:       r,
		fp:      fpRate,
		p:       fillRatio,
		hint:    hint,
	}
	s.addFilter()
	return s
}
func NewDefaultScalableBloomFilter(fpRate float64) *ScalableBloomFilter {
	return NewScalableBloomFilter(10000, fpRate, 0.8)
}