Versions in this module Expand all Collapse all v1 v1.0.1 Apr 8, 2022 Changes in this version + var Allocator allocator.MemoryManager = callocator.Instance + type Buckets struct + func NewBuckets(size uintptr) *Buckets + func (b *Buckets) At(i uintptr) *Entry + func (b *Buckets) Free() + func (b *Buckets) Put(i uintptr, e *Entry) + type Entry struct + func NewEntry(bucket uintptr, key K, value V) *Entry + func (e *Entry) Free() + func (e *Entry) Get(key K) (value V, has bool) + func (e *Entry) Put(bucket uintptr, key K, value V) (entry *Entry, appended bool) + func (e *Entry) Remove(key K) (entry *Entry, removed bool) + type Hashtable struct + func New(size int) *Hashtable + func (h *Hashtable) Begin() Iterator + func (h *Hashtable) Cap() int + func (h *Hashtable) Each(f func(key K, value V)) + func (h *Hashtable) End() Iterator + func (h *Hashtable) Free() + func (h *Hashtable) Get(key K) (V, bool) + func (h *Hashtable) Len() int + func (h *Hashtable) Put(key K, value V) + func (h *Hashtable) Remove(key K) + func (h *Hashtable) String() string + type Iterator struct + func (itr *Iterator) Key() K + func (itr *Iterator) Next() bool + func (itr *Iterator) Value() V + func (itr Iterator) IsEnd() bool + type K = int + type V = int