code: void reset() {
          cd = initCd;
          serializer = initSerializer;
          in.position(initPosition);
          finalPosition = initFinalPosition;
          offset = initOffset;
      }
docs: Resets the state to the initial state for future reuse.