Buffer: Add assign method