mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 02:12:25 -05:00
update go-fastcopy to v1.1.3 (#3200)
This commit is contained in:
parent
f8d5b9f49c
commit
6fe96a5611
4 changed files with 7 additions and 6 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue