diff options
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 |