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