Epok Engine

EPOK RUNTIME

epok::EventQueue::restore

Method · 1 overload

Method

Performs `restore` as part of the utility module.

Belongs to
epok::EventQueue
Header
utility.hpp
Overloads
1

Declaration

Declaration
void restore(const QueueEvent* input,size_t length,uint32_t dropped_count=0)

Performs `restore` as part of the utility module.

ParameterTypeMeaning
inputconst QueueEvent *Value supplied for input. Keep referenced or pointed-to data valid for the complete call.
lengthsize_tValue supplied for length. Keep referenced or pointed-to data valid for the complete call.
dropped_countuint32_tValue supplied for dropped_count. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// const QueueEvent * input
// size_t length
// uint32_t dropped_count

epok::EventQueue& object = /* obtain a valid instance */;

object.restore(input, length, dropped_count);

Why use it

The asynchronous shape lets the frame loop continue while hardware or queued work completes.

Trade-offs and warnings

Captured data and buffers must remain valid until the callback or task has completed. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/utility.hpp:110

Related members