Pike v8.0 release 1738

Method Stdio.Buffer()->trim()


Method trim

void trim()

Description

Frees unused memory.

Note that calling this function excessively will slow things down, since the data often has to be copied.

Note

This function could possibly throw an out-of-memory error if the realloc fails to find a new (smaller) memory area.