mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
update go-fastcopy to v1.1.3 (#3200)
This commit is contained in:
5
vendor/codeberg.org/gruf/go-fastcopy/copy.go
generated
vendored
5
vendor/codeberg.org/gruf/go-fastcopy/copy.go
generated
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user