buffer(staticString:)

Create a fresh ByteBuffer containing the bytes of the string encoded as UTF-8.

ByteBuffer-aux.swift:838
func buffer(staticString string: StaticString) -> ByteBuffer

Returns

The ByteBuffer containing the written bytes.

This will allocate a new ByteBuffer with enough space to fit string and potentially some extra space.