StringG.truncate

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

class StringG
truncate
(
size_t len
)

Parameters

len size_t

the new size of string

Return Value

Type: StringG

string