Epok Engine

EPOK RUNTIME

epok::card_error_message

Function · 1 overload

Function

Performs `card error message` as part of asynchronous Memory Card access and files.

Belongs to
epok
Header
memory_card.hpp
Overloads
1

Declaration

Declaration
inline const char* card_error_message(CardError error)

Performs `card error message` as part of asynchronous Memory Card access and files.

ParameterTypeMeaning
errorCardErrorValue supplied for error. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "memory_card.hpp"

// Assume these named values have been initialized with valid data:
// CardError error

auto result = epok::card_error_message(error);

Why use it

It provides direct, allocation-conscious access to asynchronous Memory Card access and files. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/memory_card.hpp:162

Related members