bufferAddUtf16

See harfbuzz.global.bufferAddCodepoints.

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

void
bufferAddUtf16

Parameters

buffer harfbuzz.buffer.Buffer

An #hb_buffer_t

text ushort[]

An array of UTF-16 characters to append

itemOffset uint

The offset of the first character to add to the buffer

itemLength int

The number of characters to add to the buffer, or -1 for the end of text (assuming it is NULL terminated)