public Object[] getAllElements()
	{
		final int cs = currSize;
		Object[] retArray = new Object[cs];
		if(cs < bufSize)
		{
			for(int i = 0; i < cs; i++)
				retArray[i] = bufferArray[i];
		}
		else
		{
			int j = 0;
			for(int i = rwPointer; i < bufSize; i++)
				 retArray[j++] = bufferArray[i];
			for(int i = 0; i < rwPointer; i++)
				 retArray[j++] = bufferArray[i];
		}
		return retArray;
	}