bufferSetLength

Similar to harfbuzz.global.bufferPreAllocate, but clears any new items added at the end.

Parameters

buffer harfbuzz.buffer.Buffer

An #hb_buffer_t

length uint

The new length of buffer

Return Value

Type: harfbuzz.types.Bool

true if buffer memory allocation succeeded, false otherwise.