Versions in this module Expand all Collapse all v0 v0.0.7 Sep 2, 2020 v0.0.6 Sep 2, 2020 Changes in this version + const MaxArrayLen — darwin/amd64, linux/amd64, windows/amd64 + func CPUTicks() int64 + func Calloc(n int) []byte + func CallocNoRef(n int) []byte + func FastRand() uint32 + func Free(b []byte) + func HistogramBounds(minExponent, maxExponent uint32) []float64 + func KeyToHash(key interface{}) (uint64, uint64) + func MemHash(data []byte) uint64 + func MemHashString(str string) uint64 + func NanoTime() int64 + func NumAllocBytes() int64 + func StatsPrint() + type Bloom struct + ElemNum uint64 + func JSONUnmarshal(dbData []byte) (*Bloom, error) + func NewBloomFilter(params ...float64) (bloomfilter *Bloom) + func (bl *Bloom) Add(hash uint64) + func (bl *Bloom) AddIfNotHas(hash uint64) bool + func (bl *Bloom) Clear() + func (bl *Bloom) IsSet(idx uint64) bool + func (bl *Bloom) Set(idx uint64) + func (bl *Bloom) Size(sz uint64) + func (bl Bloom) Has(hash uint64) bool + func (bl Bloom) JSONMarshal() []byte + type Buffer struct + func NewBuffer(sz int) *Buffer + func (b *Buffer) Allocate(n int) []byte + func (b *Buffer) Bytes() []byte + func (b *Buffer) Grow(n int) + func (b *Buffer) Len() int + func (b *Buffer) Release() + func (b *Buffer) Reset() + func (b *Buffer) Slice(offset int) []byte + func (b *Buffer) SliceAllocate(sz int) []byte + func (b *Buffer) SliceOffsets(offsets []int) []int + func (b *Buffer) Write(p []byte) (n int, err error) + type HistogramData struct + Bounds []float64 + Count int64 + CountPerBucket []int64 + Max int64 + Min int64 + Sum int64 + func NewHistogramData(bounds []float64) *HistogramData + func (histogram *HistogramData) Copy() *HistogramData + func (histogram *HistogramData) Mean() float64 + func (histogram *HistogramData) String() string + func (histogram *HistogramData) Update(value int64)