Epok Engine

EPOK RUNTIME

epok::nav::World::reserve

Method · 1 overload

Method

Performs `reserve` as part of the navigation module.

Belongs to
epok::nav::World
Header
navigation.hpp
Overloads
1

Declaration

Declaration
bool reserve(Handle h,uint16_t from,uint16_t to)

Performs `reserve` as part of the navigation module.

ParameterTypeMeaning
hHandleValue supplied for h. Keep referenced or pointed-to data valid for the complete call.
fromuint16_tValue supplied for from. Keep referenced or pointed-to data valid for the complete call.
touint16_tValue supplied for to. 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 "navigation.hpp"

// Assume these named values have been initialized with valid data:
// Handle h
// uint16_t from
// uint16_t to

epok::nav::World& object = /* obtain a valid instance */;

auto result = object.reserve(h, from, to);

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/navigation.hpp:69

Related members