Removes length memory blocks in buffer starting from idx.
length can be -1, in which case all memory starting from idx is removed.
an index
a length
Removes length memory blocks in buffer starting from idx.
length can be -1, in which case all memory starting from idx is removed.