Epok Engine

EPOK RUNTIME

epok::psx_audio::read32

Function · 1 overload

Function

Reads 32 as part of the sequence data module.

Belongs to
epok::psx_audio
Header
sequence_data.hpp
Overloads
1

Declaration

Declaration
inline uint32_t read32(const uint8_t* p)

Reads 32 as part of the sequence data module.

ParameterTypeMeaning
pconst uint8_t *Value supplied for p. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "sequence_data.hpp"

// Assume these named values have been initialized with valid data:
// const uint8_t * p

auto result = epok::psx_audio::read32(p);

Why use it

The API exposes the hardware service without hiding latency or bounded memory.

Trade-offs and warnings

Treat device absence, busy state and I/O failure as expected outcomes; do not block the frame loop waiting for hardware. 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/sequence_data.hpp:9

Related members