public void logStartStream(Kind kind, long cOffset, long endCOffset, long unlockUntilCOffset) { if (log == null) return; int offset = this.offset; if (offset + 3 > log.length) return; log[offset] = makeIntPair(START_STREAM, kind.ordinal()); log[offset + 1] = cOffset; long unlockLen = unlockUntilCOffset - cOffset; int unlockLenToSave = unlockLen >= 0 && unlockLen < Integer.MAX_VALUE ? (int)unlockLen : Integer.MAX_VALUE; log[offset + 2] = makeIntPair(unlockLenToSave, (int)(endCOffset - cOffset)); this.offset += 3; }
public void logStartStripeStream(Kind kind) { if (log == null) return; int offset = this.offset; if (offset + 1 > log.length) return; log[offset] = makeIntPair(START_STRIPE_STREAM, kind.ordinal()); this.offset += 1; }
public void logAddStream(int colIx, Stream.Kind streamKind, long streamOffset, long length, int indexIx, boolean isEntire) { if (log == null) return; int offset = this.offset; if (offset + 4 > log.length) return; log[offset] = makeIntPair(ADD_STREAM, colIx); log[offset + 1] = streamOffset; log[offset + 2] = makeIntPair((int)length, streamKind.ordinal()); log[offset + 3] = makeIntPair(indexIx, isEntire ? 1 : 0); this.offset += 4; }
public void logSkipStream(int colIx, Stream.Kind streamKind, long streamOffset, long length) { if (log == null) return; int offset = this.offset; if (offset + 3 > log.length) return; log[offset] = makeIntPair(SKIP_STREAM, colIx); log[offset + 1] = streamOffset; log[offset + 2] = makeIntPair((int)length, streamKind.ordinal()); this.offset += 3; }