erl_malloc

erl_malloc

C library

erl_malloc

Library summary

Memory Allocation Functions

Description

This module provides functions for allocating and deallocating memory.

Exports

ETERM *erl_alloc_eterm(etype)

Types:

unsigned char etype;

This function allocates an (ETERM) structure. Specify etype as one of the following constants:

  • ERL_INTEGER

  • ERL_U_INTEGER /* unsigned integer */

  • ERL_ATOM

  • ERL_PID /* Erlang process identifier */

  • ERL_PORT

  • ERL_REF /* Erlang reference */

  • ERL_LIST

  • ERL_EMPTY_LIST

  • ERL_TUPLE

  • ERL_BINARY

  • ERL_FLOA