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;

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
  • 登录查看完整内容