util.Channels.copyN
Copies a given number of bytes from one base.Channel
to another.
Syntax
util.Channels.copyN(
in base.Channel
,
out base.Channel
,
n INTEGER
)
RETURNS INTEGER
- in is the channel to read from.
- out is the channel to write to.
- n is the number of bytes to be copied.
- Returns the number of bytes copied.
Usage
The util.Channels.copyN()
copies data between two base.Channel
objects.
If the returned value is less than n, then the source channel has reached EOF.