<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Zabrane -</div><div><br></div><div>You will more than likely have to write your own function.</div><div><br></div><div>Please see the following link for a related thread of discussion with the OTP team:</div><div><br></div><div><a href="http://erlang.org/pipermail/erlang-patches/2011-October/002431.html">http://erlang.org/pipermail/erlang-patches/2011-October/002431.html</a></div><div><br></div><div>The links contained in the above thread have been moved to the following location:</div><div><br></div><div><a href="https://github.com/norton/lets/blob/master/c_src/lets_impl_drv_lib.cc#L410">https://github.com/norton/lets/blob/master/c_src/lets_impl_drv_lib.cc#L410</a></div><div><a href="https://github.com/norton/lets/blob/master/c_src/lets_impl_drv.cc#L515">https://github.com/norton/lets/blob/master/c_src/lets_impl_drv.cc#L515</a></div><div><br></div><div>regards,</div><div><br></div><div>Joe N.</div><div><br></div><br><div><div>On Mar 6, 2013, at 07:45 , Zabrane Mickael <<a href="mailto:zabrane3@gmail.com">zabrane3@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi guys,<div><br></div><div>I'm wondering if there's an equivalent C function (in erl_driver) to the NIF call  "enif_inspect_iolist_as_binary":<br><div><a href="http://www.erlang.org/doc/man/erl_nif.html#enif_inspect_iolist_as_binary">http://www.erlang.org/doc/man/erl_nif.html#enif_inspect_iolist_as_binary</a></div><div><br></div><div>I'd like to quickly concatenate some ErlDrvBinary(s) in my linked-in driver.</div><div>Currently, I'm doing a lot of copying (+freeing) to get the job done.</div><div>Maybe there's a clever alternative to that.</div><div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Regards,</div><div>Zabrane</div><div><br></div></div></span></div><br class="Apple-interchange-newline">
</div>
<br></div></div></div>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br></body></html>