14 library(hash_stream): Maintain a hash on a stream
All
Application
Manual
Name
Summary
Help
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)
[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.