geforkt von Mirrors/Velocity
a6ddc137ee
The previous code, in an attempt to avoid exceptions, checked in.isReadable() each iteration of the loop. This isn't very efficient since it's possible for us to know the maximum size of the varint to read: it's the minimum of either the largest size a varint can be (5 bytes) or the size of the remaining readable bytes in the buffer. |
||
---|---|---|
.. | ||
src | ||
build.gradle |