[erlang-questions] erl_nif: nif_to_binary and binary_to_nif API calls
Joseph Norton
norton@REDACTED
Sat Sep 3 09:53:51 CEST 2011
It would be handy to have the same functionality that is provided by erlang:term_to_binary and erlang:binary_to_term available to a NIF author.
erlang:term_to_binary(term()) -> ext_binary()
erlang:binary_to_term(ext_binary()) -> term()
except in C where term() is ERL_NIF_TERM and ext_binary() is ErlNifBinary.
- Joe
On Sep 3, 2011, at 4:04 PM, Rapsey wrote:
> I'm not sure what you mean. There is:
> enif_inspect_binary
> enif_inspect_iolist_as_binary
> enif_make_binary
>
> What's missing?
>
>
> Sergej
>
>
>
> On Sat, Sep 3, 2011 at 7:12 AM, Joseph Norton <norton@REDACTED> wrote:
>
> For the erl_nif module, are there any plans to add API calls for nif_to_binary and binary_to_nif?
>
> regards,
>
> Joseph Norton
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110903/38a30f5a/attachment.htm>
More information about the erlang-questions
mailing list