StringBuilder.sized


Description:

[ CCode ( cname = "g_string_sized_new" ) ]
public StringBuilder.sized (size_t dfl_size)

Creates a new StringBuilder, 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:

dfl_size

the default size of the space allocated to hold the string

Returns:

the new StringBuilder