private void insertAtBranchValueAlt(final int pos, byte[] source, int sourceLength, int sourceMask, long value, int length, int runPos, int run, int r1, final int sourceCharPos) { r1++; if (r1 == run) { final int insertLength = sourceLength - length; assert(insertLength>=1); writeEnd(writeRuns(insertAltBranch(0, pos>=3 ? pos-3 : 0, source, sourceCharPos, insertLength, sourceMask), source, sourceCharPos, insertLength, sourceMask), value); } else { final int insertLength = sourceLength - (length+(data[runPos] = (short)(run-r1))); assert(insertLength>=1); writeEnd(writeRuns(insertAltBranch(r1, pos, source, sourceCharPos, insertLength, sourceMask), source, sourceCharPos, insertLength, sourceMask), value); } }
private void insertAtBranchValueAlt(final int pos, byte[] source, int sourceLength, int sourceMask, long value, int length, int runPos, int run, int r1, final int sourceCharPos) { r1++; if (r1 == run) { final int insertLength = sourceLength - length; assert(insertLength>=1); writeEnd(writeRuns(insertAltBranch(0, pos>=3 ? pos-3 : 0, source, sourceCharPos, insertLength, sourceMask), source, sourceCharPos, insertLength, sourceMask), value); } else { final int insertLength = sourceLength - (length+(data[runPos] = (short)(run-r1))); assert(insertLength>=1); writeEnd(writeRuns(insertAltBranch(r1, pos, source, sourceCharPos, insertLength, sourceMask), source, sourceCharPos, insertLength, sourceMask), value); } }
private void insertAtBranchValueAlt(final int pos, byte[] source, int sourceLength, int sourceMask, long value, int length, int runPos, int run, int r1, final int sourceCharPos) { r1++; if (r1 == run) { final int insertLength = sourceLength - length; assert(insertLength>=1); writeEnd(writeRuns(insertAltBranch(0, pos>=3 ? pos-3 : 0, source, sourceCharPos, insertLength, sourceMask), source, sourceCharPos, insertLength, sourceMask), value); } else { final int insertLength = sourceLength - (length+(data[runPos] = (short)(run-r1))); assert(insertLength>=1); writeEnd(writeRuns(insertAltBranch(r1, pos, source, sourceCharPos, insertLength, sourceMask), source, sourceCharPos, insertLength, sourceMask), value); } }
assert(sourceLength1>=1); writeEnd(writeRuns(insertAltBranch(0, pos-1, source, sourcePos1, sourceLength1, sourceMask), source, sourcePos1, sourceLength1, sourceMask), value);
assert(sourceLength1>=1); writeEnd(writeRuns(insertAltBranch(0, pos-2, source, sourcePos, sourceLength1, sourceMask), source, sourcePos, sourceLength1, sourceMask), value); assert(sourceLength1>=1); int newPos = insertAltBranch(0, pos-1, source, sourcePos, sourceLength1, sourceMask); writeEnd(writeRuns(newPos, source, sourcePos, sourceLength1, sourceMask), value);
assert(sourceLength1>=1); writeEnd(writeRuns(insertAltBranch(0, pos-2, source, sourcePos, sourceLength1, sourceMask), source, sourcePos, sourceLength1, sourceMask), value); assert(sourceLength1>=1); int newPos = insertAltBranch(0, pos-1, source, sourcePos, sourceLength1, sourceMask); writeEnd(writeRuns(newPos, source, sourcePos, sourceLength1, sourceMask), value);