diff options
author | 2024-08-14 16:56:56 +0000 | |
---|---|---|
committer | 2024-08-14 16:56:56 +0000 | |
commit | 6fe96a56112bb537e1d03ef73670c0388b4756a0 (patch) | |
tree | 5d7db021b0844c7be417be59551e891978abd8d2 /vendor/codeberg.org | |
parent | update go-structr to v0.8.8 (#3199) (diff) | |
download | gotosocial-6fe96a56112bb537e1d03ef73670c0388b4756a0.tar.xz |
update go-fastcopy to v1.1.3 (#3200)
Diffstat (limited to 'vendor/codeberg.org')
-rw-r--r-- | vendor/codeberg.org/gruf/go-fastcopy/copy.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/codeberg.org/gruf/go-fastcopy/copy.go b/vendor/codeberg.org/gruf/go-fastcopy/copy.go index a9c115927..8d6b9d647 100644 --- a/vendor/codeberg.org/gruf/go-fastcopy/copy.go +++ b/vendor/codeberg.org/gruf/go-fastcopy/copy.go @@ -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 |