Allow bulk reading for what again should be a substantial reduction in CPU cycles, mostly due to the previous commit which didn't actually reduce CPU because of this not being present.

This commit is contained in:
md_5 2013-01-27 19:33:11 +11:00
parent 0985794eab
commit ed667e2b72

View File

@ -63,5 +63,13 @@ public class PacketInputStream implements AutoCloseable
out.write(ret);
return ret;
}
@Override
public int read(byte[] b, int off, int len) throws IOException
{
int ret = wrapped.read(b, off, len);
out.write(b, off, ret);
return ret;
}
}
}