write.writeVarInt(400, true);
read = new UnsafeInput(write.toBytes());
assertEquals(true, read.canReadInt());
read.setLimit(read.limit() - 1);
assertEquals(false, read.canReadInt());
}
public void testInts () throws IOException {
runIntTest(new UnsafeOutput(4096));