bufferAddUtf16

fnvoid bufferAddUtf16(harfbuzz.buffer.Buffer buffer, ushort[] text, uint itemOffset, int itemLength)

See [harfbuzz.global.bufferAddCodepoints].

Replaces invalid UTF-16 characters with the buffer replacement code point, see [harfbuzz.global.bufferSetReplacementCodepoint].

Parameters

bufferAn #hb_buffer_t
textAn array of UTF-16 characters to append
itemOffsetThe offset of the first character to add to the buffer
itemLengthThe number of characters to add to the buffer, or -1 for the end of text (assuming it is NULL terminated)