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.
Download
The precompiled SDK of each published version, with its checksum and its release notes.
Loading the versions…
Release notes
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.
Dispatch of assertion failures. Listeners observe the failure and a single policy decides the action. No allocation on the failure path.
bitsBit manipulation: basic operations, masks, packing, scanning, Morton codes and a bit-level read and write stream.
containersFixed-capacity structures that never touch the allocator after construction. Templates only.
diagnosticsWarnings and errors formatted in <code>std::format</code> style, and a library exception class.
logLogging to file, console and debugger output, in synchronous or asynchronous mode.
memoryArena and pool allocators, and a central manager that tracks allocations by tag.
metaCompile-time type description (structs, enums, flags), header-only, with no RTTI and no allocation.
platformSystem 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.
randomFast random generation, deterministic from a seed, or secure through the operating system generator.
statemachineFinite state machine with a declared transition table and run-to-completion dispatch.
stringIn-house ASCII and wide strings with small-string optimization (up to 64 characters), plus comparison and formatting functions.
uid128-bit identifiers as values: generate, parse, compare, sort and hash.
versionStores and returns the application name and version as a C string, <code>std::string</code> or <code>CAString</code>.
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.
In-memory cache with a Robin Hood table over a preallocated block, and a sharded variant for multiple threads.
concurrencyJob system with groups and execution modes: persistent worker threads or detached asynchronous routines.
coroutineFibers with assembly context switching and an M:N work-stealing scheduler, with groups, cancellation, fiber synchronization and channels.
eventSignals 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.
fileFile and folder utilities, and a C file API with memory mapping and UTF-8 paths on both platforms.
mutexRecursive mutex with owner tracking and an RAII guard.
pluginDynamic 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.
processSpawns and waits on child processes and provides local IPC: a framed message channel, shared memory, a zero-copy ring and named cross-process synchronization.
resiliencePolicies that wrap a call that can fail: retries, circuit breaker, concurrency limit and rate limit, composed in a fixed order.
schedulerJob 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.
systemConsole, threads and measurement of CPU, memory and disk, per process and per machine.
timeDurations, instants, clocks, stopwatch, deadlines, calendar, date formatting and parsing, timers and sleep. A leaf module.
Data & formats
Serialization, compression, encoding, configuration and transactional storage. All of it always compiles, with no option to set.
Compression, decompression and the checksums of the containers. The format is a value (<code>Compress</code>, <code>Decompress</code>, <code>CompressBound</code>), with format detection from the start of the stream.
configLoads configuration from many sources (TOML v1.0.0, INI, strict and lenient JSON, environment, command line), merges them in layers once, and then reads without searching.
encodingConverts bytes to text and back: hex, base64, base32, percent-encoding, quoted-printable and Unicode transcoding. A leaf module with no dependency on any other module.
serializationTwo formats: a portable, versioned binary stream with a sticky error, and strict RFC 8259 JSON read and written with no DOM and no allocation, whole or in chunks.
storageEmbedded transactional key-value store with a page-based B+ tree and a full-page WAL. One writer and many readers that never wait for it. It creates no threads and is not SQL.
Text & language
Unicode 18, linear-time regular expressions and internationalization with CLDR data. None of the three allocates on its main path.
Makes a product speak more than one language: CLDR 48.2 plurals, locale-aware formatting, ICU MessageFormat messages and compiled catalogs generated by the <code>etl-i18n</code> tool.
regexAutomata-based regular expressions with no backtracking, always linear in the length of the input. UTF-8 text and patterns, with RE2 and Perl semantics.
textEverything that requires knowing what each character is in Unicode 18.0.0: properties, normalization, case, segmentation, line breaking, width, collation, IDNA and bidi. Tables are generated from the UCD, and no path uses dynamic memory.
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.
HTTP/1.1 client over the TLS 1.3 of the <code>tls</code> module: a synchronous client with a connection pool, an asynchronous one on the event loop and Server-Sent Events. If your code never calls it, none of it enters the binary.
networkTCP, UDP, the in-house ETL-RUDP reliable protocol over UDP, a completion-based event loop and an encrypted channel.
rpcRPC with a fixed 24-byte binary frame protected by CRC, dispatch by method number negotiated once per connection, windowed streams, multiplexing and a topic bus. A per-request identifier keeps a late response from becoming the answer to the next call.
tlsIn-house TLS 1.3 (RFC 8446), client and server, with the X.509 it needs: DER, certificates, chains, host names, PEM and the system roots. TLS 1.3 only, on purpose: 1.2 would double the attack surface.
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.
Licensing of Ethereal itself. One call per application unlocks the library, and another returns the license data.
crashreportError reports and their delivery. Context is recorded in a block preallocated at <code>Init</code>, and sending happens only with the user's consent.
cryptographyChecksums, digests, authenticated encryption, key derivation, key agreement, signatures and obfuscation, all implemented inside the library.
guardAnti-reverse-engineering hardening primitives for legitimate software. The module detects, measures and protects, and never decides: it does not terminate processes and does not talk to the network. Everything ships off, with one CMake option per piece.
licensingEd25519 license kit that you embed in your product to license your own users. The product verifies with the public key only, and the issuer signs on the seller's server. It is separate from <code>bundle</code>, which licenses Ethereal itself.
updaterSigned update channel: Ed25519 over a manifest, plus SHA-256 per artifact and per file. It creates no threads and opens no sockets on its own. Networking comes in through interfaces, and everything advances through <code>Tick</code>.
Developer tools
The test framework and the measurement harness Ethereal itself is verified with, plus the terminal library.
The measurement harness. It calibrates the batch, warms up until the frequency settles, reports median, p90, p99, minimum and MAD, records the environment and has a statistical regression gate. Includes the <code>etl-bench</code> tool.
cliTerminal output with its own buffer, color and style with graceful downgrade, column width, progress bar, line editor and an argument parser that does not allocate.
testingDependency-free test framework. Header-only assertions and registration (C++17), plus a ready-made runner and <code>main</code>. It uses no exceptions or RTTI, and assertions do not allocate.
Math, game & observability
SIMD batch math, an archetype-based ECS, and the pieces to measure a process: profiler, system statistics and telemetry.
Entities, components and systems with archetype storage, in 16 KB chunks with one contiguous array per component, and 64-bit generational entities.
mathScalars, vectors, matrices and geometric primitives, with SIMD concentrated in batch functions that transform, normalize and multiply thousands of elements at once.
profilerPer-section timing, with a report and CSV export.
statsDescriptive statistics over sample streams.
telemetryMetrics, traces in the W3C Trace Context standard and export to Prometheus, OTLP (protobuf and JSON), StatsD and JSON lines. It has no built-in thread, socket or address: export runs when the integrator calls <code>Tick</code>.
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.
Detects anomalies and change without labels. Produces a calibrated score with a reason, for a review queue. The module never acts. Requires <code>Ml::Trees</code>.
Ml::Features BetaTakes per-entity events and delivers the vector the model expects, in the order of the spec. It exists to prevent skew between training features and production features.
Ml::Neural BetaInference of small networks (MLP, convolutions, LSTM and GRU) inside the binary, from an in-house format converted from ONNX by the <code>etl-neural</code> tool. The client never reads ONNX.
Ml::Trees BetaLoads a tree model trained in LightGBM or XGBoost and predicts with the same numbers as the source library. The model is converted once by the <code>etl-trees</code> tool to a memory-mapped format, with no parsing at load time.
ModelGuard BetaTreats the model as a protected asset. Signs it with Ed25519, encrypts it at rest with ChaCha20-Poly1305, binds it to a license, watermarks it with the licensee, loads it into a protected region and verifies the loaded weights in memory.
VectorIndex BetaEmbeddable nearest-neighbor search: hnswlib-style HNSW, with exact brute force alongside. Below about 10,000 vectors the automatic mode picks brute force.
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.
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.
Ai::Embed BetaEmbedding models that run locally on the CPU, offline, with scalar and AVX2 kernels, int8 quantization and GGUF files from llama.cpp. Multilingual, including Portuguese.
Ai::Llm BetaOne 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.
Ai::Mcp BetaTurns 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.
Ai::Rag BetaHybrid search with an in-house BM25 and a vector index, with filters, diversification and context assembly with citations, within the token budget.
Ai::Schema BetaJSON 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.
Ai::Tokenizer BetaTokenizers 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.
Ai::Tools BetaTurns 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.
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.