[erlang-questions] Using maps from NIFs

Sverker Eriksson sverker.eriksson@REDACTED
Thu Jun 4 11:18:38 CEST 2015


master branch now contains docs for the map functions.

I also renamed the ErlNifMapIteratorEntry enum constants
to _FIRST and _LAST. The old _HEAD and _TAIL still work but are
undocumented and deprecated.

/Sverker, Erlang/OTP


On 05/26/2015 10:29 AM, Knut Nesheim wrote:
> Thanks! :-)
>
> On Tue, May 26, 2015 at 10:13 AM, Sergej Jurečko
> <sergej.jurecko@REDACTED> wrote:
>> It's not in the documentation yet, but there is an api if you look at
>> erl_nif.h
>>
>> Check for functions with _map in the name.
>> https://github.com/erlang/otp/blob/743ed31108ee555db18d9833186865e85e34333e/erts/emulator/beam/erl_nif_api_funcs.h
>>
>>
>> Sergej
>>
>> On Tue, May 26, 2015 at 10:01 AM, Knut Nesheim <knutin@REDACTED> wrote:
>>> Hey,
>>>
>>> I would like to work with maps from within NIFs. Looking around the
>>> documentation (also for 18-rc2), I can't find anything about such an
>>> API. Did I miss it? If not, are there any plans for introducing an API
>>> usable from NIFs?
>>>
>>> Regards
>>> Knut
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions





More information about the erlang-questions mailing list