Add option for allocating buffer owned by DataSource.