- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for chunkMax (0.16 sec)
-
src/bytes/bytes.go
const chunkLimit = 8 * 1024 chunkMax := n if chunkMax > chunkLimit { chunkMax = chunkLimit / len(b) * len(b) if chunkMax == 0 { chunkMax = len(b) } } nb := bytealg.MakeNoZero(n)[:n:n] bp := copy(nb, b) for bp < n { chunk := bp if chunk > chunkMax { chunk = chunkMax } bp += copy(nb[bp:], nb[:chunk]) } return nb }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0)