vertx / io.vertx.reactivex.core.buffer / Buffer / setString

# setString

`open fun setString(pos: Int, str: String): Buffer`

Sets the bytes at position `pos` in the Buffer to the value of `str` encoded in UTF-8.

The buffer will expand as necessary to accommodate any value written.

### Parameters

`pos` -

`str` -

Return

`open fun setString(pos: Int, str: String, enc: String): Buffer`

Sets the bytes at position `pos` in the Buffer to the value of `str` encoded in encoding `enc`.

The buffer will expand as necessary to accommodate any value written.

### Parameters

`pos` -

`str` -

`enc` -

Return