docs: protected int checkWrite(int length) {
      checkWrite(position, length);
      int previousPosition = this.position;
      this.position = previousPosition + length;
      return offset(previousPosition);
    }