public static Input getInput(InputBuf inputBuf) { if (inputBuf.hasMemoryAddress()) { return new UnsafeNioBufInput(inputBuf.nioByteBuffer(), true); } return new NioBufInput(inputBuf.nioByteBuffer(), true); }
public static Input getInput(InputBuf inputBuf) { if (inputBuf.hasMemoryAddress()) { return new UnsafeNioBufInput(inputBuf.nioByteBuffer(), true); } return new NioBufInput(inputBuf.nioByteBuffer(), true); }
public static Input getInput(InputBuf inputBuf) { ByteBuffer nioBuf = inputBuf.nioByteBuffer(); ByteBufferInput input = new ByteBufferInput(); input.setVarIntsEnabled(false); // Compatible with FastInput input.setBuffer(nioBuf, 0, nioBuf.capacity()); return input; }
public static Input getInput(InputBuf inputBuf) { ByteBuffer nioBuf = inputBuf.nioByteBuffer(); ByteBufferInput input = new ByteBufferInput(); input.setVarIntsEnabled(false); // Compatible with FastInput input.setBuffer(nioBuf, 0, nioBuf.capacity()); return input; }
public static Input getInput(InputBuf inputBuf) { if (inputBuf.hasMemoryAddress()) { return new UnsafeNioBufInput(inputBuf.nioByteBuffer(), true); } return new NioBufInput(inputBuf.nioByteBuffer(), true); }
public static Input getInput(InputBuf inputBuf) { if (inputBuf.hasMemoryAddress()) { return new UnsafeNioBufInput(inputBuf.nioByteBuffer(), true); } return new NioBufInput(inputBuf.nioByteBuffer(), true); }
public static Input getInput(InputBuf inputBuf) { ByteBuffer nioBuf = inputBuf.nioByteBuffer(); ByteBufferInput input = new ByteBufferInput(); input.setVarIntsEnabled(false); // Compatible with FastInput input.setBuffer(nioBuf, 0, nioBuf.capacity()); return input; }
public static Input getInput(InputBuf inputBuf) { ByteBuffer nioBuf = inputBuf.nioByteBuffer(); ByteBufferInput input = new ByteBufferInput(); input.setVarIntsEnabled(false); // Compatible with FastInput input.setBuffer(nioBuf, 0, nioBuf.capacity()); return input; }