274 |
} |
} |
275 |
else if (coderResult.isUnderflow()) { |
else if (coderResult.isUnderflow()) { |
276 |
if (!allInputConsumed) { |
if (!allInputConsumed) { |
277 |
int nRemainingBytes |
int nRemainingBytes = 0; |
278 |
= Math.max(0, byteBuffer.limit() - byteBuffer.position()); |
if (byteBuffer.position() > 0) { |
279 |
|
nRemainingBytes = Math.max(0, byteBuffer.limit() - byteBuffer.position()); |
280 |
|
} |
281 |
if (nRemainingBytes > 0) { |
if (nRemainingBytes > 0) { |
282 |
byteBuffer.get(readBuffer, 0, nRemainingBytes); |
byteBuffer.get(readBuffer, 0, nRemainingBytes); |
283 |
} |
} |