bool Resize(UPInt size);
Resize resizes the buffer to a new size.
Returns true if buffer is resized otherwise false.