[erlang-questions] Where is enif_keep_binary?
Mon Aug 22 10:25:26 CEST 2011
On Mon, Aug 22, 2011 at 12:12 PM, Nikolas Bowe <> wrote:
> Agreed. But at least its not a full copy of a large binary. Its an
> acceptable interim solution for me.
> I dont mind the extra allocation. I just think enif_keep_binary would be a
> more intuitive name.
> I wonder how keep_binary would work for small binaries that are on a
> processes heap.
> I guess it would need to make a copy on the shared binary heap.
I see the problem. But there is erl_driver_keep_binary. I haven't
looked at it yet.
More information about the erlang-questions