14 library(hash_stream): Maintain a hash on a stream
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog C-library
        • library(hash_stream): Maintain a hash on a stream
          • open_hash_stream/3
          • stream_hash/2
Availability::- use_module(library(hash_stream)).(can be autoloaded)
Source[det]stream_hash(+HashStream, -Digest:atom)
Unify Digest with a hash for the bytes send to or read from HashStream. Note that the hash is computed on the stream buffers. If the stream is an output stream, it is first flushed and the Digest represents the hash at the current location. If the stream is an input stream the Digest represents the hash of the processed input including the already buffered data.