This function works in the same way as FocusIO.readText:
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.
Read text from the clipboard.
This function works in the same way as FocusIO.readText: 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.