HCOLL-167 added resizeBuffer()