Buffer.removeMemoryRange

void removeMemoryRange(uint idx, int length) nothrow

Removes length memory blocks in buffer starting from idx.

length can be -1, in which case all memory starting from idx is removed.

Parameters

idxan index
lengtha length