Remove 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
See Implementation
Remove length memory blocks in buffer starting from idx. length can be -1, in which case all memory starting from idx is removed.