Atom structure.
More...
#include <atom.h>
Atom structure.
Definition at line 87 of file atom.h.
◆ length
| uint32_t reduct_atom_t::length |
The length of the string (must be first, check the reduct_item_t structure).
Definition at line 89 of file atom.h.
◆ hash
| uint32_t reduct_atom_t::hash |
The hash of the string.
Definition at line 90 of file atom.h.
◆ index
| uint32_t reduct_atom_t::index |
The index within the atom map.
Definition at line 91 of file atom.h.
◆ flags
Atom flags.
Definition at line 92 of file atom.h.
◆ _padding
| uint8_t reduct_atom_t::_padding[3] |
◆ string
| char* reduct_atom_t::string |
Pointer to the data.
Definition at line 94 of file atom.h.
◆ smallString
Small string data, atom must not have REDUCT_ATOM_FLAG_LARGE.
Definition at line 96 of file atom.h.
◆ arena
The arena that this atoms string was allocated from, atom must have REDUCT_ATOM_FLAG_LARGE.
Definition at line 98 of file atom.h.
◆ [union]
◆ schema
An array of indexes to which this atom is a key.
The array is indexed by the schema id and stores the index of the field within the schema.
Definition at line 108 of file atom.h.
◆ schemaCount
| uint32_t reduct_atom_t::schemaCount |
◆ numberValue
| double reduct_atom_t::numberValue |
Pre-computed number value, atom must have REDUCT_ATOM_FLAG_NUMBER.
Definition at line 111 of file atom.h.
◆ native
Cached native function, atom must have REDUCT_ATOM_FLAG_NATIVE.
Definition at line 114 of file atom.h.
◆ intrinsic
Cached intrinsic function, atom must have REDUCT_ATOM_FLAG_NATIVE.
Definition at line 116 of file atom.h.
◆ [union]
The documentation for this struct was generated from the following file: