Epok Engine

EPOK RUNTIME

epok::streaming_prefetch

Function · 1 overload

Function

Opportunistic only: XA playback and a pending XA request retain priority.

Belongs to
epok
Header
streaming.hpp
Overloads
1

Declaration

Declaration
inline bool streaming_prefetch(uint32_t page)

Opportunistic only: XA playback and a pending XA request retain priority.

ParameterTypeMeaning
pageuint32_tValue supplied for page. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "streaming.hpp"

// Assume these named values have been initialized with valid data:
// uint32_t page

auto result = epok::streaming_prefetch(page);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations.

Declared in runtime/streaming.hpp:124

Related members