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
@override
void writeStringUTF16(String text, [int? maxLength, int byteOffset = 0]) => ptr.writeStringUTF16(text, maxLength, byteOffset);