- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for NewAlignedBytePool (0.07 seconds)
-
internal/ioutil/ioutil.go
size int p bpool.Pool[*[]byte] } // NewAlignedBytePool creates a new pool with the specified size. func NewAlignedBytePool(sz int) *AlignedBytePool { return &AlignedBytePool{size: sz, p: bpool.Pool[*[]byte]{New: func() *[]byte { b := disk.AlignedBlock(sz) return &b }}} } // aligned sync.Pool's var ( ODirectPoolLarge = NewAlignedBytePool(LargeBlock) ODirectPoolMedium = NewAlignedBytePool(MediumBlock)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 11.1K bytes - Click Count (0)