Documentation ¶
Overview ¶
Package iocopy is a wrapper around io.Copy() that recycles shared buffers.
Index ¶
Constants ¶
View Source
const BufSize = 65536
BufSize is the size (in bytes) of the shared copy buffers Kopia uses to copy data.
Variables ¶
This section is empty.
Functions ¶
func GetBuffer ¶ added in v0.9.0
func GetBuffer() []byte
GetBuffer allocates new temporary buffer suitable for copying data.
func JustCopy ¶ added in v0.9.0
JustCopy is just like Copy() but does not return the number of bytes.
func ReleaseBuffer ¶ added in v0.9.0
func ReleaseBuffer(b []byte)
ReleaseBuffer releases the buffer back to the pool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.