Epok Engine

EPOK RUNTIME

epok::instrument::u16

Function · 1 overload

Function

Performs `u16` as part of the instrument bank module.

Belongs to
epok::instrument
Header
instrument_bank.hpp
Overloads
1

Declaration

Declaration
inline uint16_t u16(const uint8_t* p)

Performs `u16` as part of the instrument bank module.

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

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

Example

C++ example
#include "instrument_bank.hpp"

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

auto result = epok::instrument::u16(p);

Why use it

It provides direct, allocation-conscious access to the instrument bank module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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/instrument_bank.hpp:8

Related members