s="ruby-constant">WaitReadable</span>
  <span class="ruby-comment"># handle wait</span>
<span class="ruby-keyword">rescue</span> <span class="ruby-operator">::</span><span class="ruby-constant">EOFError</span>
  <span class="ruby-comment"># handle eof</span>
<span class="ruby-keyword">ensure</span>
  <span class="ruby-identifier">reader</span>.<span class="ruby-identifier">close</span>
<span class="ruby-keyword">end</span>
</pre>

<p>You can create dictionary using <code>ZSTDS::Dictionary</code>.</p>

<pre 