StringG.truncate

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

class StringG
truncate

Parameters

len gsize

the new size of string

Return Value

Type: StringG

string

Meta