true if buffer memory allocation succeeded, false otherwise.Similar to harfbuzz.global.bufferPreAllocate, but clears any new items added at the end.
buffer | An #hb_buffer_t |
length | The new length of buffer |
true if buffer memory allocation succeeded, false otherwise.