an class="keyword">val</span> to_voidp : <span><span><span class="type-var">'a</span> <a href="#type-ptr">ptr</a></span> <span class="arrow">&#45;&gt;</span></span> <span>unit <a href="#type-ptr">ptr</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-allocate"><a href="#val-allocate" class="anchor"></a><code><span><span class="keyword">val</span> allocate : <span><span class="optlabel">?finalise</span>:<span>(<span><span><span class="type-var">'a</span> <a hr