set_length


Description:

[ Version ( since = "0.9.2" ) ]
public Bool set_length (uint length)

Similar to pre_allocate, but clears any new items added at the end.

Parameters:

length

The new length of buffer

buffer

An Buffer

Returns:

`true` if buffer memory allocation succeeded, `false` otherwise.