package maps

Import Path
	internal/runtime/maps (on go.dev)

Dependency Relation
	imports 8 packages, and imported by 2 packages

Involved Source Files group.go Package maps implements Go's builtin map type. runtime.go runtime_fast32_swiss.go runtime_fast64_swiss.go runtime_faststr_swiss.go runtime_swiss.go Package maps implements Go's builtin map type. Package maps implements Go's builtin map type.
Package-Level Type Names (total 2)
/* sort by: | */
Key returns a pointer to the current element. nil indicates end of iteration. Must not be called prior to Next. Init initializes Iter for iteration. (*Iter) Initialized() bool Key returns a pointer to the current key. nil indicates end of iteration. Must not be called prior to Next. Map returns the map this iterator is iterating over. Next proceeds to the next element in iteration, which can be accessed via the Key and Elem methods. The table can be mutated during iteration, though there is no guarantee that the mutations will be visible to the iteration. Init must be called prior to Next.
Clear deletes all entries from the map resulting in an empty map. (*Map) Delete(typ *abi.SwissMapType, key unsafe.Pointer) Get performs a lookup of the key that key points to. It returns a pointer to the element, or false if the key doesn't exist. (*Map) Put(typ *abi.SwissMapType, key, elem unsafe.Pointer) PutSlot returns a pointer to the element slot where an inserted element should be written. PutSlot never returns nil. (*Map) Used() uint64 func NewEmptyMap() *Map func NewMap(mt *abi.SwissMapType, hint uintptr, m *Map, maxAlloc uintptr) *Map func (*Iter).Map() *Map func NewMap(mt *abi.SwissMapType, hint uintptr, m *Map, maxAlloc uintptr) *Map func (*Iter).Init(typ *abi.SwissMapType, m *Map)
Package-Level Functions (total 2)
func NewEmptyMap() *Map
If m is non-nil, it should be used rather than allocating. maxAlloc should be runtime.maxAlloc. TODO(prattmic): Put maxAlloc somewhere accessible.