Added support for automatic size deduction with 'ResizeBuffer'.