Expand description
Stable metadata and memory-layout contracts for the rotation engine.
Modulesยง
- field_
offset - Pinned byte offsets for fields read by multi-field
EvalKindvariants.
Structsยง
- Field
Descriptor - Inventory entry describing one expression-readable buffer field.
- Slot
Descriptor - Inventory entry describing one dense-buffer slot domain.
Enumsยง
- Eval
Kind - Operation used to interpret a field from the dense rotation buffer.
- Field
Type - Primitive value representation stored in a buffer field.
- Slot
Kind - Whether a slot is a singleton or keyed by spell/aura/resource.
Constantsยง
- ACTION_
ID_ ๐BITS - ACTION_
ID_ MASK - 24-bit mask for the action ID field.
- ACTION_
ID_ SHIFT - Shift for the 24-bit action ID at bits 32..56.
- KIND_
BITS ๐ - KIND_
SHIFT - Shift for the high 8
kindbits in the packed[kind:8][action_id:24][payload:32]layout. - PACKED_
BITS ๐ - PANDEMIC_
REFRESH_ FRACTION - Pandemic refresh fraction; an aura is refreshable once
remaining < fraction * base_duration(WoW30% window). - PAYLOAD_
BITS ๐ - SLOT_
ALIGNMENT - Required slot alignment, in bytes;
assert_repr_c_layoutrejects any field with a stricter alignment.
Functionsยง
- assert_
repr_ c_ layout - Asserts that a
repr(C)layout matches declared(size, alignment)pairs. - decode_
eval_ result - Decodes
[kind:8][action_id:24][payload:32]into its components. - pack_
eval_ result - Packs an evaluation result into
[kind:8][action_id:24][payload:32].