API reference · SDK 1.0.0

Every class, every function, every error code.

The reference of the 66 modules of Ethereal, in C++ and in the C layer, generated from the headers of the SDK 1.0.0, with the guide of each module.

66modules
496headers
6,700C++ declarations
1,939C functions

Download

The precompiled SDK of each published version, with its checksum and its release notes.

Loading the versions…

Foundation

The base every other module builds on: platform, assertions, diagnostics, logging, memory, fixed-capacity structures, bits, strings, randomness, identifiers, type description and state machines. All of it always compiles.

assert

Dispatch of assertion failures. Listeners observe the failure and a single policy decides the action. No allocation on the failure path.

C
bits

Bit manipulation: basic operations, masks, packing, scanning, Morton codes and a bit-level read and write stream.

C
containers

Fixed-capacity structures that never touch the allocator after construction. Templates only.

C
diagnostics

Warnings and errors formatted in <code>std::format</code> style, and a library exception class.

C
log

Logging to file, console and debugger output, in synchronous or asynchronous mode.

C
memory

Arena and pool allocators, and a central manager that tracks allocations by tag.

C
meta

Compile-time type description (structs, enums, flags), header-only, with no RTTI and no allocation.

platform

System introspection: modules, processes, threads, regions and another process's memory, exports, image integrity, privileges, system and CPU facts, disks, network interfaces and machine fingerprinting. Every piece is checked against an independent oracle.

C
random

Fast random generation, deterministic from a seed, or secure through the operating system generator.

C
statemachine

Finite state machine with a declared transition table and run-to-completion dispatch.

C
string

In-house ASCII and wide strings with small-string optimization (up to 64 characters), plus comparison and formatting functions.

C
uid

128-bit identifiers as values: generate, parse, compare, sort and hash.

C
version

Stores and returns the application name and version as a C string, <code>std::string</code> or <code>CAString</code>.

C

System & concurrency

Operating system, files, time, processes, plugins, threads, fibers and the policies that protect a call that can fail. A thread or shared instance is created on the first call that needs it, never at startup.

cache

In-memory cache with a Robin Hood table over a preallocated block, and a sharded variant for multiple threads.

C
concurrency

Job system with groups and execution modes: persistent worker threads or detached asynchronous routines.

C
coroutine

Fibers with assembly context switching and an M:N work-stealing scheduler, with groups, cancellation, fiber synchronization and channels.

C
event

Signals and an event bus with no <code>std::function</code> and no <code>shared_ptr</code>. A slot is a context and function pointer pair in a contiguous vector. Reentrancy is handled.

C
file

File and folder utilities, and a C file API with memory mapping and UTF-8 paths on both platforms.

C
mutex

Recursive mutex with owner tracking and an RAII guard.

C
plugin

Dynamic plugin loading with a C contract, and an ABI gate that rejects an incompatible plugin without running a single line of it. Hot swap with calls in flight.

C
process

Spawns and waits on child processes and provides local IPC: a framed message channel, shared memory, a zero-copy ring and named cross-process synchronization.

C
resilience

Policies that wrap a call that can fail: retries, circuit breaker, concurrency limit and rate limit, composed in a fixed order.

C
scheduler

Job calendar (for example, every weekday at 03:00 local time) with no thread of its own. It uses the <code>time</code> clocks and dispatches on an executor supplied by the integrator.

C
system

Console, threads and measurement of CPU, memory and disk, per process and per machine.

C
time

Durations, instants, clocks, stopwatch, deadlines, calendar, date formatting and parsing, timers and sleep. A leaf module.

C

Data & formats

Serialization, compression, encoding, configuration and transactional storage. All of it always compiles, with no option to set.

Text & language

Unicode 18, linear-time regular expressions and internationalization with CLDR data. None of the three allocates on its main path.

Networking

Sockets and an event loop, an in-house TLS 1.3 with X.509, an HTTPS client on top of it and binary RPC. None of it uses OpenSSL or any other TLS library.

Security & product

In-house cryptography, the licensing of Ethereal itself and four optional modules for your own product: protection, licenses, updates and crash reports. Turned off, they leave the build identical.

Developer tools

The test framework and the measurement harness Ethereal itself is verified with, plus the terminal library.

Math, game & observability

SIMD batch math, an archetype-based ECS, and the pieces to measure a process: profiler, system statistics and telemetry.

Machine learning

Six modules for classic inference, model protection and vector search, all off by default, with no dependencies and no Python at run time.

AI

Generative AI in native C++: tokenizers, JSON Schema, an LLM client, tools and MCP for agents, local embeddings, semantic search and an agent runtime. Eight modules, all off by default. Zero dependencies, no Python, no external runtime.

Ai::Agent Beta

An agent runtime with a budget, context management, memory, checkpoints and deterministic replay. Its step-by-step API fits the tick of a game server or any event loop.

C-DETHEREAL_AI_AGENT
Ai::Embed Beta

Embedding models that run locally on the CPU, offline, with scalar and AVX2 kernels, int8 quantization and GGUF files from llama.cpp. Multilingual, including Portuguese.

C-DETHEREAL_AI_EMBED
Ai::Llm Beta

One API for Anthropic, OpenAI and servers compatible with the OpenAI API, with streaming that allocates nothing per event, a connection pool, smart retries and cost control.

C-DETHEREAL_AI_LLM
Ai::Mcp Beta

Turns a C++ app into a Model Context Protocol server in a few lines, checked against the official SDKs and the MCP Inspector. It also connects to any existing MCP server.

C-DETHEREAL_AI_MCP
Ai::Rag Beta

Hybrid search with an in-house BM25 and a vector index, with filters, diversification and context assembly with citations, within the token budget.

C-DETHEREAL_AI_RAG
Ai::Schema Beta

JSON Schema for LLM tools and structured outputs: compiles a schema into a flat program, validates JSON against it with no DOM, whole or in chunks, generates the schema from a C++ type and repairs the JSON a model wrote.

C-DETHEREAL_AI_SCHEMA
Ai::Tokenizer Beta

Tokenizers that give the same token ids as tiktoken, Hugging Face and SentencePiece on the files they load: BPE, Unigram and WordPiece, a streaming decoder and token counting with no allocation.

C-DETHEREAL_AI_TOKENIZER
Ai::Tools Beta

Turns C++ functions into tools a model can call: the schema comes from the struct, dispatch is by perfect hash, calls run in parallel and human approval is optional.

C-DETHEREAL_AI_TOOLS

Interface

FormaUI, a future user interface module, in development for the Full edition.

Common headers

Types, status codes and macros that every module uses: the platform layer, the status codes of the C layer and the attributes.