get the closest offset for the given time . concode_field_sep int[] offset concode_elem_sep int readIndex concode_elem_sep long[] time concode_elem_sep int bufferSize concode_elem_sep int writeIndex concode_field_sep int getBufferContentSize concode_elem_sep long getMaxTime concode_elem_sep void increaseWriteIndex concode_elem_sep void write concode_elem_sep long getMinTime
int function ( long arg0 ) { for ( int loc0 = 1 ; loc0 < getBufferContentSize ( ) ; loc0 ++ ) { int loc1 = ( readIndex + loc0 ) % bufferSize ; if ( this . time [ loc1 ] > arg0 ) { if ( loc1 > 0 ) { return this . offset [ loc1 - 1 ] ; } else { return this . offset [ bufferSize - 1 ] ; } } } return - 1 ; }