docs: public void wrap(final MutableDirectBuffer buffer, final int offset)
      {
          Objects.requireNonNull(buffer, "Buffer must not be null");
          if (!buffer.isExpandable())
          {
              throw new IllegalStateException("buffer must be expandable.");
          }
  
          this.buffer = buffer;
          this.offset = offset;
          this.position = 0;
      }