autodoc.git / traditional_manual / chapter_21.html

version» Context lines:

autodoc.git/traditional_manual/chapter_21.html:10803:   <dt class='head--doc'>See also</dt>   <dd class='body--doc'><p><code>State()-&gt;update()</code> and <code>State()-&gt;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()-&gt;update(Stdio.read_file(file))-&gt;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()-&gt;update()</code> and    <code>State()-&gt;digest()</code>.</p>   </dd></dl>         <hr />   <dl class='group--doc'>   <dt class='head--type'><span class='homogen--type'>Inherit</span>