grow(minCapacity) {
			// overflow-conscious code
			let oldCapacity = this.buf.length;
			let newCapacity = oldCapacity << 1;
			if (newCapacity - minCapacity < 0)
				newCapacity = minCapacity;
			if (newCapacity < 0) {
				if (minCapacity < 0) // overflow
					throw new OutOfMemoryError();
				newCapacity = Integer.MAX_VALUE;
			}
			this.buf = Arrays.copyOfUint8Array(this.buf, newCapacity);
		}
Increases the capacity to ensure that it can hold at least the
number of elements specified by the minimum capacity argument.

@param minCapacity the desired minimum capacity