6496d2dbc7
Modification: If the readableBytes() is zero, then just return. Result: The logic can be easy to understand and a little faster than before.