long val = state;
if (allAreSet(val, FLAG_CLOSE_REQUESTED)) {
throw new ClosedChannelException();
}
if (allAreClear(val, MASK_COUNT)) {
throw new FixedLengthOverflowException();
}
long res = 0L;
try {
return res = next.transferFrom(source, min(count, (val & MASK_COUNT)), throughBuffer);
} finally {