public long parseLongAscii(final int index, final int length) { boundsCheck0(index, length); final int endExclusive = index + length; final int first = getByte(index); int i = index; if (first == MINUS_SIGN) { i++; } long tally = 0; for (; i < endExclusive; i++) { tally = (tally * 10) + AsciiEncoding.getDigit(i, byteArray[i]); } if (first == MINUS_SIGN) { tally = -tally; } return tally; }
public int parseIntAscii(final int index, final int length) { boundsCheck0(index, length); final int endExclusive = index + length; final int first = getByte(index); int i = index; if (first == MINUS_SIGN) { i++; } int tally = 0; for (; i < endExclusive; i++) { tally = (tally * 10) + AsciiEncoding.getDigit(i, byteArray[i]); } if (first == MINUS_SIGN) { tally = -tally; } return tally; }
public boolean isMappedFromSourceDocument(int mappingIndex) { return mappingResults.getByte(mapToResultIndex(mappingIndex) + (2 * BitUtil.SIZE_OF_INT)) == 1; }
public boolean isMappedFromSourceDocument(int mappingIndex) { return mappingResults.getByte(mapToResultIndex(mappingIndex) + (2 * BitUtil.SIZE_OF_INT)) == 1; }
public int parseIntAscii(final int index, final int length) { boundsCheck0(index, length); final int endExclusive = index + length; final int first = getByte(index); int i = index; if (first == MINUS_SIGN) { i++; } int tally = 0; for (; i < endExclusive; i++) { tally = (tally * 10) + AsciiEncoding.getDigit(i, byteArray[i]); } if (first == MINUS_SIGN) { tally = -tally; } return tally; }
public long parseLongAscii(final int index, final int length) { boundsCheck0(index, length); final int endExclusive = index + length; final int first = getByte(index); int i = index; if (first == MINUS_SIGN) { i++; } long tally = 0; for (; i < endExclusive; i++) { tally = (tally * 10) + AsciiEncoding.getDigit(i, byteArray[i]); } if (first == MINUS_SIGN) { tally = -tally; } return tally; }