public int getIndexFromOffset ( int offset ) { int result = - 1 ; for ( int loop = 0 ; loop < m_offset . length ; loop ++ ) { if ( m_offset [ loop ] == offset ) { result = loop ; break ; } } return ( result ) ; }
This method converts an offset value into an array index which in turn allows the data present in the fixed block to be retrieved . Note that if the requested offset is not found then this method returns - 1 .