Add method to set a buffer into a distributed array.