clear(start:number, end:number)
Name | Type | Действие | Значение по умолчанию |
---|---|---|---|
start | number | Cleaning start index | — |
end | number | Cleaning end index | — |
// Clear the entire buffer myBuffer.clear(); // Clears the buffer from elements 10 to 15 myBuffer.clear(10, 15); // Clears the buffer from element 10 to the end myBuffer.clear(10);