Appends elem until length equals len, then returns this.
elem
len
this
Buffer<A> padToInPlace(int len, A elem) { while (length < len) { addOne(elem); } return this; }