zmap

package
v0.0.0-...-9d1b792 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Map Superfast With : Int Array

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentMap

type ConcurrentMap struct {
	// contains filtered or unexported fields
}

func NewConcurrentMap

func NewConcurrentMap(bucketSize int) *ConcurrentMap

func (*ConcurrentMap) Delete

func (m *ConcurrentMap) Delete(key string)

func (*ConcurrentMap) Get

func (m *ConcurrentMap) Get(key string) interface{}

func (*ConcurrentMap) Len

func (m *ConcurrentMap) Len() int

func (*ConcurrentMap) Set

func (m *ConcurrentMap) Set(key string, value interface{})

type Item

type Item interface {
}

type ZMap

type ZMap[T Item] struct {
	// contains filtered or unexported fields
}

func New

func New[T Item](size int) *ZMap[T]

func (*ZMap[T]) Add

func (tr *ZMap[T]) Add(item T) (T, bool)

func (*ZMap[T]) Clean

func (tr *ZMap[T]) Clean()

func (*ZMap[T]) GetAll

func (tr *ZMap[T]) GetAll() []T

func (*ZMap[T]) GetAt

func (tr *ZMap[T]) GetAt(index int) (T, bool)

func (*ZMap[T]) SetAt

func (tr *ZMap[T]) SetAt(index int, item T) (T, bool)

func (*ZMap[T]) ZGetAt

func (tr *ZMap[T]) ZGetAt(index int) T

func (*ZMap[T]) ZSetAt

func (tr *ZMap[T]) ZSetAt(index int, item T) T

Fast function, not check success

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL