Documentation ¶
Index ¶
- func ArrayN(n int) []int
- func BytesToString(b []byte) string
- func FindRootInterface(v reflect.Value) any
- func MakeNew[T any]() T
- func MakeNewAny(v any) any
- func MakeValue(elem reflect.Type) reflect.Value
- func StringToBytes(s string) []byte
- type PreAllocatedPool
- type SortShim
- type SyncPool
- type SyncPoolWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
func FindRootInterface ¶
func MakeNewAny ¶
func StringToBytes ¶
Types ¶
type PreAllocatedPool ¶
type PreAllocatedPool[T any] struct { *SyncPoolWrapper[T] // contains filtered or unexported fields }
func NewPreAllocatedPool ¶
func NewPreAllocatedPool[T any](newFunc func() any, size int) *PreAllocatedPool[T]
func (*PreAllocatedPool[T]) Get ¶
func (s *PreAllocatedPool[T]) Get() T
func (*PreAllocatedPool[T]) Put ¶
func (s *PreAllocatedPool[T]) Put(t T)
type SyncPoolWrapper ¶
func (*SyncPoolWrapper[T]) Get ¶
func (s *SyncPoolWrapper[T]) Get() T
func (*SyncPoolWrapper[T]) Put ¶
func (s *SyncPoolWrapper[T]) Put(t T)
Click to show internal directories.
Click to hide internal directories.