truncate method

void truncate(
int size
)