Documentation
¶
Overview ¶
Package bmap implements basic map with []byte key type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMap ¶
BMap implements generic hashmap with []byte key type. It is intended to store a small fixed set of keys. Added []byte keys are copied into internal byte slice for safety. Uses map with string keys internally.
func New ¶
New create bytes map. size defines maximum number of stored keys (not counting empty key).
func (BMap[T]) Get ¶
Get returns stored value by key and a flag telling whether this key is stored in the map. Returns zero value if the key is not present.
func (BMap[T]) GetString ¶
GetString returns stored value by key and a flag telling whether this key is stored in the map. Returns zero value if the key is not present.