- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AlignedBlock (1.18 sec)
-
internal/ioutil/ioutil.go
} // 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)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 11.1K bytes - Viewed (0) -
cmd/xl-storage.go
xlStorageFormatFile = "xl.meta" // XL metadata file backup file carries previous per object metadata. xlStorageFormatFileBackup = "xl.meta.bkp" ) var alignedBuf []byte func init() { alignedBuf = disk.AlignedBlock(xioutil.DirectioAlignSize) _, _ = rand.Read(alignedBuf) } // isValidVolname verifies a volname name in accordance with object // layer requirements. func isValidVolname(volname string) bool {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 91.7K bytes - Viewed (0)