core :: FlatBuffer :: rshift_bytes
len
bytes to the right, starting at byte from
Internal only, does not modify _byte_length or length, this is the caller's responsability
# Shifts the content of the buffer by `len` bytes to the right, starting at byte `from`
#
# Internal only, does not modify _byte_length or length, this is the caller's responsability
private fun rshift_bytes(from: Int, len: Int) do
var oit = _items
var nit = _items
var bt = _byte_length
if bt + len > capacity then
capacity = capacity * 2 + 2
nit = new CString(capacity)
oit.copy_to(nit, 0, 0, from)
end
oit.copy_to(nit, bt - from, from, from + len)
end
lib/core/text/flat.nit:891,2--904,4