if (allAreSet(val, FLAG_CLOSE_REQUESTED)) {
throw new ClosedChannelException();
}
long toWrite = Buffers.remaining(srcs, offset, length);
if (toWrite > remaining) {
throw new FixedLengthOverflowException();
}
long res = 0L;
try {
return res = next.write(srcs, offset, length);
} finally {