/** * Appends the passed element to the end of the list. * * @param srcBuffer from which the element bytes will be copied. */ public void add(DirectBuffer srcBuffer) { add(srcBuffer, 0, srcBuffer.capacity()); }
/** * Appends the passed element to the end of the list. * * @param srcBuffer from which the element bytes will be copied. * @param offset at which the element begins. * @param length of the element. */ public void add(DirectBuffer srcBuffer, int offset, int length) { add(srcBuffer, offset, length, max(size(), 0)); }
/** * Appends the passed element to the end of the list. * * @param srcBuffer from which the element bytes will be copied. * @param offset at which the element begins. * @param length of the element. */ public void add(DirectBuffer srcBuffer, int offset, int length) { add(srcBuffer, offset, length, max(size(), 0)); }
public void appendElement() { context.add(emptyElement, 0, elementSize); moveToLastElement(); }
public void appendElement() { context.add(emptyElement, 0, elementSize); moveToLastElement(); }
/** * Appends the passed element to the end of the list. * * @param srcBuffer from which the element bytes will be copied. */ public void add(DirectBuffer srcBuffer) { add(srcBuffer, 0, srcBuffer.capacity()); }
protected void addResult(int position, int length) { resultWriteBuffer.putInt(RESULT_POSITION_OFFSET, position); resultWriteBuffer.putInt(RESULT_LENGTH_OFFSET, length); matchingPositions.add(resultWriteBuffer); } }
protected void addResult(int position, int length) { resultWriteBuffer.putInt(RESULT_POSITION_OFFSET, position); resultWriteBuffer.putInt(RESULT_LENGTH_OFFSET, length); matchingPositions.add(resultWriteBuffer); } }