Conduit.transfer

Low-level data transfer, where max represents the maximum number of bytes to transfer.

Returns Eof on failure, number of bytes copied on success.

class Conduit
static
size_t
transfer
(
InputStream src
,
OutputStream dst
,
size_t max = -1
)

Meta