Enlarges the subsequent array containing the chars of self

Property definitions

core $ Buffer :: enlarge
	# Enlarges the subsequent array containing the chars of self
	fun enlarge(cap: Int) is abstract
lib/core/text/abstract_text.nit:1576,2--1577,34

core $ FlatBuffer :: enlarge
	redef fun enlarge(cap)
	do
		var c = capacity
		if cap <= c then return
		if c <= 16 then c = 16
		while c <= cap do c = c * 2
		# The COW flag can be set at false here, since
		# it does a copy of the current `Buffer`
		written = false
		var bln = _byte_length
		var a = new CString(c)
		if bln > 0 then
			var it = _items
			if bln > 0 then it.copy_to(a, bln, 0, 0)
		end
		_items = a
		capacity = c
	end
lib/core/text/flat.nit:991,2--1008,4