Epok Engine

EPOK RUNTIME

epok::streaming_descriptor_valid

Function · 1 overload

Function

Exported descriptors are immutable.

Belongs to
epok
Header
streaming.hpp
Overloads
1

Declaration

Declaration
constexpr bool streaming_descriptor_valid(const MeshGeometry &mesh)

Exported descriptors are immutable.

ParameterTypeMeaning
meshconst MeshGeometry &Value supplied for mesh. 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:
// const MeshGeometry & mesh

auto result = epok::streaming_descriptor_valid(mesh);

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. 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/streaming.hpp:288

Related members