Epok Engine

EPOK RUNTIME

epok::stream_page_hash

Function · 1 overload

Function

Performs `stream page hash` as part of bounded CD or PC geometry-page streaming.

Belongs to
epok
Header
streaming_pool.hpp
Overloads
1

Declaration

Declaration
inline uint32_t stream_page_hash(const uint8_t *data, size_t bytes = stream_page_bytes)

Performs `stream page hash` as part of bounded CD or PC geometry-page streaming.

ParameterTypeMeaning
dataconst uint8_t *Value supplied for data. Keep referenced or pointed-to data valid for the complete call.
bytessize_tValue supplied for bytes. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "streaming_pool.hpp"

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

auto result = epok::stream_page_hash(data, bytes);

Why use it

It provides direct, allocation-conscious access to bounded CD or PC geometry-page streaming. No exception-based error path is implied by the signature.

Trade-offs and warnings

This is classified as **Engine internal**. Prefer a higher-level Epok service unless you need this exact control. 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_pool.hpp:9

Related members