refc_binary.hļƒ

Include dependency graph for refc_binary.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "6" [label="erl_nif.h" tooltip="erl_nif.h"]
    "4" [label="list.h" tooltip="list.h"]
    "1" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.h" fillcolor="#BFBFBF"]
    "5" [label="resources.h" tooltip="resources.h"]
    "11" [label="smp.h" tooltip="smp.h"]
    "7" [label="term_typedef.h" tooltip="term_typedef.h"]
    "9" [label="inttypes.h" tooltip="inttypes.h"]
    "8" [label="limits.h" tooltip="limits.h"]
    "12" [label="stdatomic.h" tooltip="stdatomic.h"]
    "2" [label="stdbool.h" tooltip="stdbool.h"]
    "10" [label="stdint.h" tooltip="stdint.h"]
    "3" [label="stdlib.h" tooltip="stdlib.h"]
    "6" -> "7" [dir=forward tooltip="include"]
    "1" -> "2" [dir=forward tooltip="include"]
    "1" -> "3" [dir=forward tooltip="include"]
    "1" -> "4" [dir=forward tooltip="include"]
    "1" -> "5" [dir=forward tooltip="include"]
    "1" -> "11" [dir=forward tooltip="include"]
    "5" -> "3" [dir=forward tooltip="include"]
    "5" -> "6" [dir=forward tooltip="include"]
    "5" -> "4" [dir=forward tooltip="include"]
    "11" -> "2" [dir=forward tooltip="include"]
    "11" -> "12" [dir=forward tooltip="include"]
    "7" -> "8" [dir=forward tooltip="include"]
    "7" -> "9" [dir=forward tooltip="include"]
    "7" -> "10" [dir=forward tooltip="include"]
}

This graph shows which files directly or indirectly include refc_binary.h:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "42" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.c"]
    "41" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/avmpack.h"]
    "15" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.c"]
    "14" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bif.h"]
    "8" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.c"]
    "7" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/bitstring.h"]
    "11" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.c"]
    "13" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/context.h"]
    "18" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.c"]
    "17" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/debug.h"]
    "44" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.c"]
    "43" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/defaultatoms.h"]
    "35" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.c"]
    "36" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/dictionary.h"]
    "20" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/erl_nif_priv.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/erl_nif_priv.h"]
    "37" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/exportedfunction.h"]
    "22" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.c"]
    "39" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/externalterm.h"]
    "2" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.c"]
    "40" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/globalcontext.h"]
    "9" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.c"]
    "23" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/interop.h"]
    "34" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/mailbox.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/mailbox.c"]
    "3" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/memory.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/memory.c"]
    "12" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.c"]
    "25" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/module.h"]
    "16" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.c"]
    "30" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/nifs.h"]
    "10" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/opcodesswitch.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/opcodesswitch.h"]
    "45" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/overflow_helpers.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/overflow_helpers.h"]
    "26" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/platform_nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/platform_nifs.h"]
    "31" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.c"]
    "32" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/port.h"]
    "21" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.c"]
    "38" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/posix_nifs.h"]
    "4" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.c"]
    "1" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/refc_binary.h" fillcolor="#BFBFBF"]
    "5" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/resources.c"]
    "19" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.c"]
    "33" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/scheduler.h"]
    "28" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.c"]
    "27" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/stacktrace.h"]
    "29" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/sys.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/sys.h"]
    "24" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.c" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.c"]
    "6" [label="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.h" tooltip="/home/winford/github/UncleGrumpy/AtomVM/src/libAtomVM/term.h"]
    "41" -> "42" [dir=back tooltip="include"]
    "41" -> "2" [dir=back tooltip="include"]
    "41" -> "16" [dir=back tooltip="include"]
    "14" -> "15" [dir=back tooltip="include"]
    "14" -> "12" [dir=back tooltip="include"]
    "14" -> "16" [dir=back tooltip="include"]
    "14" -> "10" [dir=back tooltip="include"]
    "7" -> "8" [dir=back tooltip="include"]
    "7" -> "9" [dir=back tooltip="include"]
    "7" -> "10" [dir=back tooltip="include"]
    "13" -> "14" [dir=back tooltip="include"]
    "13" -> "11" [dir=back tooltip="include"]
    "13" -> "17" [dir=back tooltip="include"]
    "13" -> "20" [dir=back tooltip="include"]
    "13" -> "22" [dir=back tooltip="include"]
    "13" -> "2" [dir=back tooltip="include"]
    "13" -> "23" [dir=back tooltip="include"]
    "13" -> "3" [dir=back tooltip="include"]
    "13" -> "12" [dir=back tooltip="include"]
    "13" -> "25" [dir=back tooltip="include"]
    "13" -> "16" [dir=back tooltip="include"]
    "13" -> "30" [dir=back tooltip="include"]
    "13" -> "31" [dir=back tooltip="include"]
    "13" -> "32" [dir=back tooltip="include"]
    "13" -> "4" [dir=back tooltip="include"]
    "13" -> "5" [dir=back tooltip="include"]
    "13" -> "33" [dir=back tooltip="include"]
    "13" -> "27" [dir=back tooltip="include"]
    "13" -> "24" [dir=back tooltip="include"]
    "17" -> "18" [dir=back tooltip="include"]
    "17" -> "3" [dir=back tooltip="include"]
    "17" -> "10" [dir=back tooltip="include"]
    "17" -> "19" [dir=back tooltip="include"]
    "43" -> "15" [dir=back tooltip="include"]
    "43" -> "44" [dir=back tooltip="include"]
    "43" -> "35" [dir=back tooltip="include"]
    "43" -> "2" [dir=back tooltip="include"]
    "43" -> "9" [dir=back tooltip="include"]
    "43" -> "16" [dir=back tooltip="include"]
    "43" -> "10" [dir=back tooltip="include"]
    "43" -> "31" [dir=back tooltip="include"]
    "43" -> "32" [dir=back tooltip="include"]
    "43" -> "21" [dir=back tooltip="include"]
    "43" -> "5" [dir=back tooltip="include"]
    "43" -> "28" [dir=back tooltip="include"]
    "36" -> "15" [dir=back tooltip="include"]
    "36" -> "11" [dir=back tooltip="include"]
    "36" -> "35" [dir=back tooltip="include"]
    "36" -> "3" [dir=back tooltip="include"]
    "36" -> "16" [dir=back tooltip="include"]
    "36" -> "4" [dir=back tooltip="include"]
    "20" -> "11" [dir=back tooltip="include"]
    "20" -> "2" [dir=back tooltip="include"]
    "20" -> "3" [dir=back tooltip="include"]
    "20" -> "21" [dir=back tooltip="include"]
    "20" -> "4" [dir=back tooltip="include"]
    "20" -> "5" [dir=back tooltip="include"]
    "37" -> "14" [dir=back tooltip="include"]
    "37" -> "25" [dir=back tooltip="include"]
    "37" -> "30" [dir=back tooltip="include"]
    "37" -> "10" [dir=back tooltip="include"]
    "37" -> "26" [dir=back tooltip="include"]
    "37" -> "38" [dir=back tooltip="include"]
    "39" -> "22" [dir=back tooltip="include"]
    "39" -> "12" [dir=back tooltip="include"]
    "39" -> "16" [dir=back tooltip="include"]
    "40" -> "41" [dir=back tooltip="include"]
    "40" -> "11" [dir=back tooltip="include"]
    "40" -> "13" [dir=back tooltip="include"]
    "40" -> "43" [dir=back tooltip="include"]
    "40" -> "2" [dir=back tooltip="include"]
    "40" -> "12" [dir=back tooltip="include"]
    "40" -> "25" [dir=back tooltip="include"]
    "40" -> "31" [dir=back tooltip="include"]
    "40" -> "32" [dir=back tooltip="include"]
    "40" -> "21" [dir=back tooltip="include"]
    "40" -> "38" [dir=back tooltip="include"]
    "40" -> "33" [dir=back tooltip="include"]
    "40" -> "29" [dir=back tooltip="include"]
    "23" -> "9" [dir=back tooltip="include"]
    "23" -> "16" [dir=back tooltip="include"]
    "23" -> "21" [dir=back tooltip="include"]
    "23" -> "24" [dir=back tooltip="include"]
    "25" -> "14" [dir=back tooltip="include"]
    "25" -> "12" [dir=back tooltip="include"]
    "25" -> "16" [dir=back tooltip="include"]
    "25" -> "10" [dir=back tooltip="include"]
    "25" -> "26" [dir=back tooltip="include"]
    "25" -> "27" [dir=back tooltip="include"]
    "25" -> "29" [dir=back tooltip="include"]
    "30" -> "12" [dir=back tooltip="include"]
    "30" -> "16" [dir=back tooltip="include"]
    "30" -> "10" [dir=back tooltip="include"]
    "30" -> "21" [dir=back tooltip="include"]
    "10" -> "11" [dir=back tooltip="include"]
    "10" -> "12" [dir=back tooltip="include"]
    "45" -> "15" [dir=back tooltip="include"]
    "26" -> "16" [dir=back tooltip="include"]
    "32" -> "16" [dir=back tooltip="include"]
    "32" -> "31" [dir=back tooltip="include"]
    "38" -> "2" [dir=back tooltip="include"]
    "38" -> "16" [dir=back tooltip="include"]
    "38" -> "21" [dir=back tooltip="include"]
    "1" -> "2" [dir=back tooltip="include"]
    "1" -> "3" [dir=back tooltip="include"]
    "1" -> "4" [dir=back tooltip="include"]
    "1" -> "5" [dir=back tooltip="include"]
    "1" -> "6" [dir=back tooltip="include"]
    "33" -> "34" [dir=back tooltip="include"]
    "33" -> "16" [dir=back tooltip="include"]
    "33" -> "10" [dir=back tooltip="include"]
    "33" -> "19" [dir=back tooltip="include"]
    "27" -> "10" [dir=back tooltip="include"]
    "27" -> "28" [dir=back tooltip="include"]
    "29" -> "11" [dir=back tooltip="include"]
    "29" -> "2" [dir=back tooltip="include"]
    "29" -> "12" [dir=back tooltip="include"]
    "29" -> "16" [dir=back tooltip="include"]
    "29" -> "5" [dir=back tooltip="include"]
    "29" -> "19" [dir=back tooltip="include"]
    "6" -> "7" [dir=back tooltip="include"]
    "6" -> "13" [dir=back tooltip="include"]
    "6" -> "35" [dir=back tooltip="include"]
    "6" -> "36" [dir=back tooltip="include"]
    "6" -> "37" [dir=back tooltip="include"]
    "6" -> "39" [dir=back tooltip="include"]
    "6" -> "40" [dir=back tooltip="include"]
    "6" -> "9" [dir=back tooltip="include"]
    "6" -> "23" [dir=back tooltip="include"]
    "6" -> "3" [dir=back tooltip="include"]
    "6" -> "12" [dir=back tooltip="include"]
    "6" -> "25" [dir=back tooltip="include"]
    "6" -> "16" [dir=back tooltip="include"]
    "6" -> "45" [dir=back tooltip="include"]
    "6" -> "32" [dir=back tooltip="include"]
    "6" -> "38" [dir=back tooltip="include"]
    "6" -> "27" [dir=back tooltip="include"]
    "6" -> "24" [dir=back tooltip="include"]
}

Defines

TYPEDEF_CONTEXT

Typedefs

typedef struct Context Context

Functions

struct RefcBinary *refc_binary_create_resource(size_t size, struct ResourceType *resource_type)
static inline struct RefcBinary *refc_binary_create_refc(size_t size)ļƒ
const char *refc_binary_get_data(const struct RefcBinary *ptr)
struct RefcBinary *refc_binary_from_data(void *ptr)
void refc_binary_increment_refcount(struct RefcBinary *ptr)
bool refc_binary_decrement_refcount(struct RefcBinary *ptr, GlobalContext *global)
void refc_binary_destroy(struct RefcBinary *refc, struct GlobalContext *global)
term refc_binary_create_binary_info(Context *ctx)
size_t refc_binary_total_size(Context *ctx)
struct RefcBinary

Collaboration diagram for RefcBinary:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "7" [label="AtomsHashTable" tooltip="AtomsHashTable"]
    "12" [label="ExportedFunction" tooltip="ExportedFunction"]
    "4" [label="GlobalContext" tooltip="GlobalContext"]
    "8" [label="HNode" tooltip="HNode"]
    "2" [label="ListHead" tooltip="ListHead"]
    "13" [label="LiteralEntry" tooltip="LiteralEntry"]
    "10" [label="Module" tooltip="Module"]
    "11" [label="ModuleFilename" tooltip="ModuleFilename"]
    "1" [label="RefcBinary" tooltip="RefcBinary" fillcolor="#BFBFBF"]
    "3" [label="ResourceType" tooltip="ResourceType"]
    "5" [label="SpinLock" tooltip="SpinLock"]
    "6" [label="SyncList" tooltip="SyncList"]
    "14" [label="TimerList" tooltip="TimerList"]
    "9" [label="ValuesHashTable" tooltip="ValuesHashTable"]
    "7" -> "8" [dir=forward tooltip="usage"]
    "4" -> "2" [dir=forward tooltip="usage"]
    "4" -> "5" [dir=forward tooltip="usage"]
    "4" -> "6" [dir=forward tooltip="usage"]
    "4" -> "7" [dir=forward tooltip="usage"]
    "4" -> "9" [dir=forward tooltip="usage"]
    "4" -> "10" [dir=forward tooltip="usage"]
    "4" -> "14" [dir=forward tooltip="usage"]
    "8" -> "8" [dir=forward tooltip="usage"]
    "2" -> "2" [dir=forward tooltip="usage"]
    "10" -> "4" [dir=forward tooltip="usage"]
    "10" -> "11" [dir=forward tooltip="usage"]
    "10" -> "2" [dir=forward tooltip="usage"]
    "10" -> "12" [dir=forward tooltip="usage"]
    "10" -> "13" [dir=forward tooltip="usage"]
    "1" -> "2" [dir=forward tooltip="usage"]
    "1" -> "3" [dir=forward tooltip="usage"]
    "3" -> "2" [dir=forward tooltip="usage"]
    "3" -> "4" [dir=forward tooltip="usage"]
    "6" -> "2" [dir=forward tooltip="usage"]
    "14" -> "2" [dir=forward tooltip="usage"]
    "9" -> "8" [dir=forward tooltip="usage"]
}

Public Members

struct ListHead head
size_t ATOMIC ref_count
size_t size
struct ResourceType *resource_type
uint8_t data[]