• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

14 library(hash_stream): Maintain a hash on a stream
All Application Manual Name SummaryHelp

  • 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]open_hash_stream(+OrgStream, -HashStream, +Options)
Open a filter stream on OrgStream that maintains a hash. The hash can be retrieved at any time using stream_hash/2. Provided options:
algorithm(+Algorithm)
One of md5, sha1, sha224, sha256, sha384 or sha512. Default is sha1.
close_parent(+Bool)
If true (default), closing the filter stream also closes the original (parent) stream.
ClioPatria (version V3.1.1-51-ga0b30a5)