String.sizedNew

glib.string_.String sizedNew(size_t dflSize)

Creates a new #GString, with enough space for dfl_size bytes. This is useful if you are going to add a lot of text to the string and don't want it to be reallocated too often.

Parameters

dflSizethe default size of the space allocated to hold the string

Returns

the new #GString