Why use it
The asynchronous shape lets the frame loop continue while hardware or queued work completes.
EPOK RUNTIME
Method · 1 overload
Performs `restore` as part of the utility module.
void restore(const QueueEvent* input,size_t length,uint32_t dropped_count=0)Performs `restore` as part of the utility module.
| Parameter | Type | Meaning |
|---|---|---|
input | const QueueEvent * | Value supplied for input. Keep referenced or pointed-to data valid for the complete call. |
length | size_t | Value supplied for length. Keep referenced or pointed-to data valid for the complete call. |
dropped_count | uint32_t | Value supplied for dropped_count. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#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);The asynchronous shape lets the frame loop continue while hardware or queued work completes.
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