diff options
author | Lukas Larsson <[email protected]> | 2015-12-17 14:14:54 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-03-29 14:57:11 +0200 |
commit | 1bd56e2b5141a3afdca4e854e9b667807bf4e2f3 (patch) | |
tree | 0171c0a573a08068d7155ac73bcd6a6d3fc941d6 /erts/doc/src/erl_nif.xml | |
parent | 348f3f2ee2d2707e30658c3600e05309ad0e72bf (diff) | |
download | otp-1bd56e2b5141a3afdca4e854e9b667807bf4e2f3.tar.gz otp-1bd56e2b5141a3afdca4e854e9b667807bf4e2f3.tar.bz2 otp-1bd56e2b5141a3afdca4e854e9b667807bf4e2f3.zip |
erts: Add enif_term_to_binary and enif_binary_to_term
Diffstat (limited to 'erts/doc/src/erl_nif.xml')
-rw-r--r-- | erts/doc/src/erl_nif.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml index 6befdc124b..47d84bb813 100644 --- a/erts/doc/src/erl_nif.xml +++ b/erts/doc/src/erl_nif.xml @@ -655,6 +655,18 @@ typedef enum { have been allocated with <seealso marker="#enif_alloc_env">enif_alloc_env</seealso>. </p></desc> </func> + <func><name><ret>int</ret><nametext>enif_binary_to_term(ErlNifEnv *env, ErlNifBinary *bin, ERL_NIF_TERM *term)</nametext></name> + <fsummary>Convert a term from the external format</fsummary> + <desc> + <p>Returns a term that is the result of decoding <c>bin</c> + according to the Erlang external term format.</p> + <p>See also:</p> + <list> + <item><seealso marker="erlang#binary_to_term-1"><c>erlang:binary_to_term/1</c></seealso></item> + <item><seealso marker="#enif_term_to_binary"><c>enif_term_to_binary</c></seealso></item> + </list> + </desc> + </func> <func><name><ret>int</ret><nametext>enif_compare(ERL_NIF_TERM lhs, ERL_NIF_TERM rhs)</nametext></name> <fsummary>Compare two terms</fsummary> <desc><p>Return an integer less than, equal to, or greater than @@ -1599,6 +1611,18 @@ enif_map_iterator_destroy(env, &iter); <desc><p>Same as <seealso marker="erl_driver#driver_system_info">driver_system_info</seealso>. </p></desc> </func> + <func><name><ret>int</ret><nametext>enif_term_to_binary(ErlNifEnv *env, ERL_NIF_TERM term, ErlNifBinary *bin)</nametext></name> + <fsummary>Convert a term to the external format</fsummary> + <desc> + <p>Returns a binary data object that is the result of encoding <c>term</c> + according to the Erlang external term format.</p> + <p>See also:</p> + <list> + <item><seealso marker="erlang#term_to_binary-1"><c>erlang:term_to_binary/1</c></seealso></item> + <item><seealso marker="#enif_binary_to_term"><c>enif_binary_to_term</c></seealso></item> + </list> + </desc> + </func> <func><name><ret>int</ret><nametext>enif_thread_create(char *name,ErlNifTid *tid,void * (*func)(void *),void *args,ErlNifThreadOpts *opts)</nametext></name> <fsummary></fsummary> <desc><p>Same as <seealso marker="erl_driver#erl_drv_thread_create">erl_drv_thread_create</seealso>. |