@Test public void segmentLength() { assertEquals(4, Util.segmentLength(0)); assertEquals(8, Util.segmentLength(1)); assertEquals(8, Util.segmentLength(2)); assertEquals(8, Util.segmentLength(3)); assertEquals(8, Util.segmentLength(4)); assertEquals(32, Util.segmentLength(27)); assertEquals(32, Util.segmentLength(28)); assertEquals(36, Util.segmentLength(29)); assertEquals(Long.MAX_VALUE - 3, Util.segmentLength(Long.MAX_VALUE - 8)); assertEquals(Long.MAX_VALUE - 3, Util.segmentLength(Long.MAX_VALUE - 7)); }
public static long segmentLength(long dataLength) { return ((dataLength + 3) & ~3l) + CRC_LEN; }
Util { public static long segmentLength(long dataLength) { return ((dataLength + 3) & ~3l) + CRC_LEN; } }
Util { public static long segmentLength(long dataLength) { return ((dataLength + 3) & ~3l) + CRC_LEN; }  }
Util { public static long segmentLength(long dataLength) { return ((dataLength + 3) & ~3l) + CRC_LEN; }  static long segmentLength(long dataLength); static ObjectSequence<TimeSeriesCollection> fixSequence(ObjectSequence<TimeSeriesCollection> seq); static ObjectSequence<TimeSeriesCollection> mergeSequences(ObjectSequence<TimeSeriesCollection>... tsSeq); }
Util { public static long segmentLength(long dataLength) { return ((dataLength + 3) & ~3l) + CRC_LEN; }  static long segmentLength(long dataLength); static ObjectSequence<TimeSeriesCollection> fixSequence(ObjectSequence<TimeSeriesCollection> seq); static ObjectSequence<TimeSeriesCollection> mergeSequences(ObjectSequence<TimeSeriesCollection>... tsSeq); static final int HDR_3_LEN; static final int ALL_HDR_CRC_LEN; }