Epok Engine

EPOK RUNTIME

epok::detail::compact_class_id

Function · 1 overload

Function

Single-block SHA-256: enough for a 36 character UUID (message + padding <= 64 bytes).

Belongs to
epok::detail
Header
object_model.hpp
Overloads
1

Declaration

Declaration
constexpr uint64_t compact_class_id(const char* text)

Single-block SHA-256: enough for a 36 character UUID (message + padding <= 64 bytes).

ParameterTypeMeaning
textconst char *Value supplied for text. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "object_model.hpp"

// Assume these named values have been initialized with valid data:
// const char * text

auto result = epok::detail::compact_class_id(text);

Why use it

It provides direct, allocation-conscious access to the object model 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/object_model.hpp:90

Related members