docs: public void write(final byte[] srcBytes, final int srcOffset, final int length)
      {
          final long resultingOffset = position + ((long)length);
          if (resultingOffset > this.length)
          {
              throw new IllegalStateException("insufficient capacity in the buffer");
          }
  
          buffer.putBytes(offset + position, srcBytes, srcOffset, length);
          position += length;
      }