func (t *SingleTable) SizeInBytes() uint {
	return t.len
}
SizeInBytes return bytes occupancy of table
package cuckoo
import (
	"bytes"
	"encoding/binary"
	"fmt"
	"io"
	"math/rand"
)
type SingleTable struct {
	kTagsPerBucket uint
	numBuckets     uint
	bitsPerTag     uint
	tagMask        uint32
	bucket         []byte
	len            uint
}
func NewSingleTable() *SingleTable {
	return &SingleTable{}
}
func (t *SingleTable) Init(tagsPerBucket, bitsPerTag, num uint, initialBucketsHint []byte) error {
	t.bitsPerTag = bitsPerTag
	t.numBuckets = num
	t.kTagsPerBucket = tagsPerBucket
	t.tagMask = (1 << bitsPerTag) - 1
	t.len = (t.bitsPerTag*t.kTagsPerBucket*t.numBuckets + 7) >> 3
	buckets, err := getBucketsFromHint(initialBucketsHint, t.len)
	if err != nil {
		return err
	}
	t.bucket = buckets
	return nil
}
func (t *SingleTable) NumBuckets() uint {
	return t.numBuckets
}