diff options
author | John Högberg <[email protected]> | 2018-03-23 08:19:12 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-03-23 08:19:12 +0100 |
commit | bf7206f13aae8d55e4d54320a179e11ad8f90765 (patch) | |
tree | de212a221a5bb2bfeb04261ee5322d4f9f310f03 /erts/doc/src/erl_nif.xml | |
parent | 7c2672e614883d8f0eac7559a59d0373ec92af69 (diff) | |
parent | 187564ffccee4a3b5727bdab3df2458f3b5ced72 (diff) | |
download | otp-bf7206f13aae8d55e4d54320a179e11ad8f90765.tar.gz otp-bf7206f13aae8d55e4d54320a179e11ad8f90765.tar.bz2 otp-bf7206f13aae8d55e4d54320a179e11ad8f90765.zip |
Merge branch 'john/erts/nif-map-from-array/OTP-14954'
* john/erts/nif-map-from-array/OTP-14954:
Add enif_make_map_from_arrays
Diffstat (limited to 'erts/doc/src/erl_nif.xml')
-rw-r--r-- | erts/doc/src/erl_nif.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml index 27b0945c10..cabc07d020 100644 --- a/erts/doc/src/erl_nif.xml +++ b/erts/doc/src/erl_nif.xml @@ -2185,6 +2185,20 @@ enif_inspect_iovec(env, max_elements, term, &tail, &iovec); </func> <func> + <name><ret>int</ret> + <nametext>enif_make_map_from_arrays(ErlNifEnv* env, ERL_NIF_TERM keys[], + ERL_NIF_TERM values[], size_t cnt, ERL_NIF_TERM *map_out)</nametext></name> + <fsummary>Make map term from the given keys and values.</fsummary> + <desc> + <p>Makes a map term from the given keys and values.</p> + <p>If successful, this function sets <c>*map_out</c> to the new map and + returns <c>true</c>. Returns <c>false</c> there are any duplicate + keys.</p> + <p>All keys and values must belong to <c>env</c>.</p> + </desc> + </func> + + <func> <name><ret>unsigned char *</ret><nametext>enif_make_new_binary(ErlNifEnv* env, size_t size, ERL_NIF_TERM* termp)</nametext></name> <fsummary>Allocate and create a new binary term.</fsummary> |