Documentation ¶
Index ¶
- func NewSlice[T bcts.ReadWriter[any]]() *slice[T]
- type Map
- func (s *Map[BT, T]) CompareAndSwap(key bcts.TinyString, n T, swap func(stored T) bool) (swapped bool)
- func (s *Map[BT, T]) Delete(key bcts.TinyString)
- func (s *Map[BT, T]) Get(key bcts.TinyString) (data T, ok bool)
- func (s *Map[BT, T]) GetMap() (data map[bcts.TinyString]T)
- func (s *Map[BT, T]) GetOrInit(key bcts.TinyString, init func() T) (T, bool)
- func (s *Map[BT, T]) ReadBytes(r io.Reader) (err error)
- func (s *Map[BT, T]) Set(key bcts.TinyString, data T)
- func (s *Map[BT, T]) WriteBytes(w io.Writer) (err error)
- type Obj
- type Que
- func (s *Que[BT, T]) Delete(is func(v T) bool)
- func (s *Que[BT, T]) HasData() <-chan struct{}
- func (s *Que[BT, T]) Peek() (data T, ok bool)
- func (s *Que[BT, T]) Pop() (data T, ok bool)
- func (s *Que[BT, T]) Push(data T)
- func (s *Que[BT, T]) ReadBytes(r io.Reader) (err error)
- func (s *Que[BT, T]) WriteBytes(w io.Writer) (err error)
- type SLK
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSlice ¶
func NewSlice[T bcts.ReadWriter[any]]() *slice[T]
Types ¶
type Map ¶
type Map[BT any, T bcts.ReadWriter[BT]] struct { // contains filtered or unexported fields }
func MapFromReader ¶ added in v0.7.7
func (*Map[BT, T]) CompareAndSwap ¶
func (s *Map[BT, T]) CompareAndSwap( key bcts.TinyString, n T, swap func(stored T) bool, ) (swapped bool)
func (*Map[BT, T]) Delete ¶
func (s *Map[BT, T]) Delete(key bcts.TinyString)
func (*Map[BT, T]) GetMap ¶
func (s *Map[BT, T]) GetMap() (data map[bcts.TinyString]T)
func (*Map[BT, T]) GetOrInit ¶
func (s *Map[BT, T]) GetOrInit(key bcts.TinyString, init func() T) (T, bool)
func (*Map[BT, T]) Set ¶
func (s *Map[BT, T]) Set(key bcts.TinyString, data T)
type Que ¶
type Que[T any, RT bcts.ReadWriter[T]] struct { // contains filtered or unexported fields }
func QueFromReader ¶ added in v0.7.7
type SLK ¶
Click to show internal directories.
Click to hide internal directories.