T [ ] function ( ) { final T [ ] loc0 = makeArray ( clazz , numElems ) ; int loc1 = 0 ; while ( numElems > 0 ) { numElems -- ; loc0 [ loc1 ++ ] = ring [ first ] ; ring [ first ] = null ; if ( ++ first == ring . length ) { first = 0 ; } } return loc0 ; }
removes all the elements from the buffer and returns them . concode_field_sep int numElems concode_elem_sep int last concode_elem_sep T[] ring concode_elem_sep int first concode_elem_sep Class<T> clazz concode_field_sep void add concode_elem_sep T[] makeArray concode_elem_sep boolean isEmpty