cslice

package
v0.0.0-...-2d29fd2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSlice

type CSlice[T any] struct {
	// contains filtered or unexported fields
}

CSlice is a concurrently safe slice for data type T

func New

func New[T any](cap int) CSlice[T]

New creates a new CSlice

func (*CSlice[T]) Add

func (b *CSlice[T]) Add(value T)

func (*CSlice[T]) FillTail

func (b *CSlice[T]) FillTail(items []T)

FillTail adds multiple items to the concurrent_slice

func (*CSlice[T]) Length

func (b *CSlice[T]) Length() int

func (*CSlice[T]) RemoveLast

func (b *CSlice[T]) RemoveLast() *T

func (*CSlice[T]) Reset

func (b *CSlice[T]) Reset()

Reset clears the concurrent_slice

Jump to

Keyboard shortcuts

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