[buffer] Implement fill() method