could it possible directly use the (str, size) to construct or re-init the Buffer?