strtable

package
v0.0.0-...-5ecb8ee Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package strtable is a fast hash table for string->uint32

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BTable

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

func NewBucket

func NewBucket(keys int) *BTable

func (*BTable) Insert

func (t *BTable) Insert(k []byte, val uint32) (uint32, bool)

type FrogTable

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

func NewFrog

func NewFrog(keys int) *FrogTable

func (*FrogTable) Insert

func (t *FrogTable) Insert(k []byte, val uint32) (uint32, bool)

type Native

type Native map[string]uint32

func NewNative

func NewNative(size int) Native

func (Native) Insert

func (n Native) Insert(x []byte, val uint32) (uint32, bool)

type RHTable

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

func NewRH

func NewRH(keys int) *RHTable

func (*RHTable) Insert

func (t *RHTable) Insert(k []byte, val uint32) (uint32, bool)

type Table

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

func New

func New(keys int) *Table

func (*Table) Insert

func (t *Table) Insert(k []byte, val uint32) (uint32, bool)

Jump to

Keyboard shortcuts

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