/** * Returns the number of channel blocks that are available in the data. * * @return a block count, >= 0 && < {@value nl.lxtreme.ols.api.Ols#MAX_BLOCKS} * . */ public int getBlockCount() { return ( int )Math.min( Ols.MAX_BLOCKS, Math.ceil( getChannels() / ( double )Ols.CHANNELS_PER_BLOCK ) ); }
if ( aBlockNr == ( blockCount - 1 ) ) final int remainder = getChannels() % Ols.CHANNELS_PER_BLOCK; if ( remainder != 0 )