void hb_buffer_reset(hb_buffer_t * buffer) { if (hb_atomic_int32_get(&buffer->ref_cnt) == REF_CNT_INVALID_VAL) return; hb_unicode_funcs_destroy(buffer->unicode); buffer->unicode = hb_unicode_funcs_get_default(); hb_buffer_clear(buffer); }
/** * pango_ot_buffer_clear * @buffer: a #PangoOTBuffer * * Empties a #PangoOTBuffer, make it ready to add glyphs to. * * Since: 1.4 **/ void pango_ot_buffer_clear (PangoOTBuffer *buffer) { hb_buffer_clear (buffer->buffer); buffer->applied_gpos = FALSE; }