public static < T extends Chunkable > int chunkCountFrom ( T chunkable , int chunkLength ) { byte [ ] data = chunkable . getChunkableData ( ) ; return ( int ) Math . ceil ( data . length * 1.0 / chunkLength ) ; }
Retrieve the count of chunks for a given chunk length .