public void clear(){
  infoQueue.clear();
  allocator.release(dataQueue.toArray(new Allocation[dataQueue.size()]));
  dataQueue.clear();
  totalBytesDropped=0;
  totalBytesWritten=0;
  lastAllocation=null;
  lastAllocationOffset=allocationLength;
}

public void clear ( ) { infoQueue . clear ( ) ; allocator . release ( dataQueue . toArray ( new Allocation [ dataQueue . size ( ) ] ) ) ; dataQueue . clear ( ) ; totalBytesDropped = 0 ; totalBytesWritten = 0 ; lastAllocation = null ; lastAllocationOffset = allocationLength ; }
clears the buffer , returning all allocations to the allocator .
