Buffer to write the text to.
Number of leading bytes to skip when writing into the buffer. Updated to point to the end of the buffer. This makes it possible to keep track of position in the text if it doesn't fit in a single buffer.
A slice of the given buffer with text that was read. null if no text remains to read.
Read text inserted by the user into a buffer.
Reads a UTF-8 sequence of characters from the system that was typed in by the user during the last frame. This will be keyboard input as interpreted by the system, using the system's input method, providing support for internationalization.
All the text will be written by reference into the provided buffer, overwriting previously stored text. The returned value will be a slice of this buffer, representing the entire value:
The buffer may not fit the entire text. Because of this, the function should be called repeatedly until the returned value is null.
This function may not throw: In the instance the offset extends beyond text boundaries, the buffer is empty or text cannot be read, this function should return null, as if no text should remain to read.