Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Function template · 2 overloads
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
A descending allocation can cross protected chunks without writing them.
template<size_t Capacity,class Borrowed> void invalidate_borrowed(unsigned parity,uint32_t first_slot, const FramePacketSlots<Capacity>& slots,Borrowed borrowed)A descending allocation can cross protected chunks without writing them.
| Parameter | Type | Meaning |
|---|---|---|
parity | unsigned int | Not documented; consult the linked header. |
first_slot | uint32_t | Not documented; consult the linked header. |
slots | const FramePacketSlots<Capacity> & | Not documented; consult the linked header. |
borrowed | Borrowed | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "retained.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// Capacity, Borrowed
// Assume these named values have been initialized with valid data:
// unsigned int parity
// uint32_t first_slot
// const FramePacketSlots<Capacity> & slots
// Borrowed borrowed
epok::RetainedGeometry& object = /* obtain a valid instance */;
object.invalidate_borrowed<Capacity, Borrowed>(parity, first_slot, slots, borrowed);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/retained.hpp:231
void invalidate_borrowed(unsigned parity,uint32_t first_slot)Dynamic writes can replace dormant cached packets.
| Parameter | Type | Meaning |
|---|---|---|
parity | unsigned int | Not documented; consult the linked header. |
first_slot | uint32_t | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "retained.hpp"
// Assume these named values have been initialized with valid data:
// unsigned int parity
// uint32_t first_slot
epok::RetainedGeometry& object = /* obtain a valid instance */;
object.invalidate_borrowed(parity, first_slot);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/retained.hpp:222
allocate`limit_slot` is the packet-buffer capacity.Methodfirst_slotPerforms `first slot` as part of the retained module.MethodforgetA reused entity slot keeps its resident range, including across LODs.Methodprepare_keyPerforms `prepare key` as part of the retained module.MethodquadsPerforms `quads` as part of the retained module.MethodresetResets reset as part of the retained module.Methodslot_topFirst preferred fragment slot beyond the cache (not a per-frame reservation).MethodstatePerforms `state` as part of the retained module.Method