writeStringUTF16 method
Writes a UTF-16 text into a fixed-size maxLength-byte buffer field at
address + byteOffset. Truncates if too long; otherwise NUL-terminates
and zero-pads the remainder.
Implementation
void writeStringUTF16(String text, [int? maxLength, int byteOffset = 0])
=> offsetBy(byteOffset).cast<RInt16>().writeString(text, maxLength);