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
commit 6fe96a5611
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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