autodoc.git
/
traditional_manual
/
chapter_21.html
version
»
Context lines:
10
20
40
80
file
none
3
autodoc.git/traditional_manual/chapter_21.html:10803:
<dt class='head--doc'>See also</dt> <dd class='body--doc'><p><code>State()->update()</code> and <code>State()->digest()</code>.</p> </dd></dl> <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Method</span> <span class='homogen--name'><b>hash</b></span> </dt>
-
<dd><p><code><code class='datatype'>string(8bit)</code> <b><span class='method'>hash</span>(</b><code class='object unresolved'>Stdio.File</code>|<code class='object unresolved'>Stdio.Buffer</code>|<code class='object unresolved'>String.Buffer</code>|<code class='object unresolved'>System.Memory</code> <code class='argument'>source</code>, <code class='datatype'>void</code>|<code class='datatype'>int(0..)</code> <code class='argument'>bytes</code><b>)</b></code></p></dd>
+
<dd><p><code><code class='datatype'>string(8bit)</code> <b><span class='method'>hash</span>(</b><code class='object unresolved'>Stdio.File</code>|<code class='object unresolved'>Stdio.Buffer</code>|<code class='object unresolved'>String.Buffer</code>|<code class='object unresolved'>System.Memory</code> <code class='argument'>source</code>, <code class='datatype'>void</code>|<code class='datatype'>int(0..)</code>
|<code
class='deprecated'>__deprecated__
<
/
code
>(<code
class='
datatype'>int(..-1)</code>) <code class='
argument'>bytes</code><b>)</b></code></p></dd>
<dt class='head--doc'>Description</dt> <dd class='body--doc'><p>Works as a (faster) shortcut for e.g. <code class='expr'>State()->update(Stdio.read_file(file))->digest()</code>, where State is the hash state class corresponding to this Hash.</p> </dd> <dt class='head--doc'><span id='p-bytes'></span>Parameter <code class='parameter'>bytes</code></dt> <dd></dd><dd class='body--doc'><p>The number of bytes of the file object <code>file</code> that should be
-
hashed.
Negative
numbers are ignored and the whole file is
-
hashed.</p>
+
hashed.
Zero
and negative
numbers are ignored and the whole file is
+
hashed.
Support for negative numbers is deprecated.
</p>
</dd> <dt class='head--doc'>See also</dt> <dd class='body--doc'><p><code>Stdio.File</code>, <code>State()->update()</code> and <code>State()->digest()</code>.</p> </dd></dl> <hr /> <dl class='group--doc'> <dt class='head--type'><span class='homogen--type'>Inherit</span>