type hmap struct {count int //元素个数flags uint8B uint8 //扩容常量noverflow uint16 //溢出 bucket 个数hash0 uint32 //hash 种子buckets unsafe.Pointer //bucket 数组指针oldbuckets unsafe.Pointer //扩容时旧的buckets 数组指针nevacuate uintptr //扩容搬迁进度extra *mapextra //记录溢出相关}
type bmap struct {tophash [bucketCnt]uint8// Followed by bucketCnt keys//and then bucketan Cnt values// Followed by overflow pointer.}
