ngSink.html#hash--"><code>hash()</code></a> to compute the final hash value.

 <p>In this example we use <code>HashingSink</code> with a <a href="../../../../com/lark/oapi/okio/BufferedSink.html" title="com.lark.oapi.okio中的接口"><code>BufferedSink</code></a> to make writing to the
 sink easier. <pre>   <code>

   HashingSink hashingSink = HashingSink.sha256(s);
   BufferedSink bufferedSink = Okio.buffer(hashingSink);

   ... // Write to bufferedSink and either flush or close it.

   ByteString hash = 