code: SegmentChunk withNewOffset(long newOffset) {
          SegmentChunk ns = new SegmentChunk(this.name, newOffset);
          ns.setLength(getLength());
          if (isSealed()) {
              ns.markSealed();
          }
  
          if (!exists()) {
              ns.markInexistent();
          }
  
          return ns;
      }
docs: Creates a new instance of the SegmentChunk class with the same information as this one, but with a new offset.
  
  @param newOffset The new offset.
  @return A new SegmentChunk.