update go-fastcopy to v1.1.3 (#3200)

This commit is contained in:
kim
2024-08-14 16:56:56 +00:00
committed by GitHub
parent f8d5b9f49c
commit 6fe96a5611
4 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
package fastcopy
import (
"errors"
"io"
"sync"
_ "unsafe" // link to io.errInvalidWrite.
@@ -10,8 +11,8 @@ var (
// global pool instance.
pool = CopyPool{size: 4096}
//go:linkname errInvalidWrite io.errInvalidWrite
errInvalidWrite error
// errInvalidWrite means that a write returned an impossible count.
errInvalidWrite = errors.New("invalid write result")
)
// CopyPool provides a memory pool of byte