Epok Engine

EPOK RUNTIME

epok::RetainedGeometry::invalidate_borrowed

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.

Function template

A descending allocation can cross protected chunks without writing them.

Belongs to
epok::RetainedGeometry
Header
retained.hpp
Overloads
2

Declaration 1 of 2

template
Declaration
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.

ParameterTypeMeaning
parityunsigned intNot documented; consult the linked header.
first_slotuint32_tNot documented; consult the linked header.
slotsconst FramePacketSlots<Capacity> &Not documented; consult the linked header.
borrowedBorrowedNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/retained.hpp:231

Declaration 2 of 2

Declaration
void invalidate_borrowed(unsigned parity,uint32_t first_slot)

Dynamic writes can replace dormant cached packets.

ParameterTypeMeaning
parityunsigned intNot documented; consult the linked header.
first_slotuint32_tNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/retained.hpp:222

Related members