public static void verifyChunkedSums ( int bytesPerSum , int checksumType , ByteBuffer sums , ByteBuffer data , String fileName , long basePos ) throws ChecksumException { nativeVerifyChunkedSums ( bytesPerSum , checksumType , sums , sums . position ( ) , data , data . position ( ) , data . remaining ( ) , fileName , basePos ) ; }
Verify the given buffers of data and checksums and throw an exception if any checksum is invalid . The buffers given to this function should have their position initially at the start of the data and their limit set at the end of the data . The position limit and mark are not modified .