Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RandomAccessFile digest methods #31

Closed
wants to merge 1 commit into from
Closed

Add RandomAccessFile digest methods #31

wants to merge 1 commit into from

Commits on Dec 4, 2019

  1. Added RandomAccessFile digest methods

    Added two new methods:
    
    * digest(final MessageDigest messageDigest, final RandomAccessFile data)
    * updateDigest(final MessageDigest digest, final RandomAccessFile data)
    
    For computing digest of RandomAccessFiles.
    
    Performance-wise there's almost no improvements offered
    by these new NIO based methods, but being non-blocking
    they could potentially use fewer resources and provide
    better throughput in highly multi-threaded scenarios.
    behrangsa committed Dec 4, 2019
    Copy the full SHA
    8ee6510 View commit details
    Browse the repository at this point in the history