[erlang-questions] enif_inspect_binary behaviour

Caragea Silviu <>
Thu Apr 6 14:17:56 CEST 2017


Hello,

I'm using enif_inspect_binary to get the content of a binary.

My question is if ErlNifBinary will be a copy of the erlang binary or the
data member will point to the same memory location?

>From my tests seems points to the same buffer as time If I change something
when I return to erlang I can observe the change

Silviu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170406/aac72aca/attachment.html>


More information about the erlang-questions mailing list