String.truncate

glib.string_.String truncate(size_t len)

Cuts off the end of the GString, leaving the first len bytes.

Parameters

lenthe new size of string

Returns

string