bufferSetLength

fnharfbuzz.types.Bool bufferSetLength(harfbuzz.buffer.Buffer buffer, uint length)

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

Parameters

bufferAn #hb_buffer_t
lengthThe new length of buffer

Returns

true if buffer memory allocation succeeded, false otherwise.