Reallocate {@link Buffer} to a required size.Implementation may choose the way, how reallocation could be done, either by allocating new {@link Buffer} of required size and copying old{@link Buffer} content there, or perform more complex logic related tomemory pooling etc.
@param oldBuffer old {@link Buffer} to be reallocated.
@param newSize new {@link Buffer} required size.
@return reallocated {@link Buffer}.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.