internal void ClearBuffers() {
if ( buffers != null ) {
// recycle all but the first the buffer
for ( int i = 0; i < buffersCount; i++ ) {
Recycle( buffers[i] );
}
lastBuffer = null;
}
else {
// just one buffer allocated with no buffers array -> no recycling
}
lastBufferIndex = 0;
buffersCount = 0;
}