bufferRef.reset(buffer); no temp object needed.