bufferPreAllocate

fnharfbuzz.types.Bool bufferPreAllocate(harfbuzz.buffer.Buffer buffer, uint size)

Pre allocates memory for buffer to fit at least size number of items.

Parameters

bufferAn #hb_buffer_t
sizeNumber of items to pre allocate.

Returns

true if buffer memory allocation succeeded, false otherwise