slicepool

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlicePool

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

func NewSlicePool

func NewSlicePool[T any]() SlicePool[T]

func (*SlicePool[T]) Get

func (p *SlicePool[T]) Get(size int) []T

func (*SlicePool[T]) Put

func (p *SlicePool[T]) Put(value []T)

Jump to

Keyboard shortcuts

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