NAME
ttypt/corm.h - Public header for the Corm library.
SYNOPSIS
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include './cormr.h'
Data Structures
Describes a single field in a record layout.
Macros
Sentinel value for notfound"orerrorconditions.
Macro and mask for record-aware maps.
Record field type constants.
Typedefs
Association callback type.
Multi-key association callback type.
Callback to measure variable-size keys.
Comparison callback type.
Concise aliases for record schema operations.
Enumerations
Corm flags.
Built-in type identifiers.
Iterator flags.
Functions
Open a database.
Returns the value type (vtype) of a map.
Returns the key type (ktype) of a map.
Returns the fixed length of a type, or 0 if variable.
Write all file-backed maps to disk.
Close a map and free its resources.
Retrieve a value by key.
Copy a value into a caller buffer.
Non-aborting safe record retrieval with guaranteed zero-initialization.
Insert or update a pair.
Delete an entry by key.
Delete all entries with the specified key.
Delete the first entry with this key whose value matches.
Remove all entries from a map.
Make an association between tables.
Make a multi-key association between tables.
Start iteration.
Fetch next key/value.
Fetch next key/value, copied into caller buffers.
End iteration early.
Start iteration over all values for a key.
Count entries matching a key.
Register a fixed-length type.
Assign comparison function to a type.
Register a variable-length type.
Canonical measured type for length-prefixed binary blobs (uint32_t len + data).
Get the byte length of an element.
Register a record layout describing a C struct.
Get the struct type ID registered for a record.
Get the string key at a given position number.
Get the position number for a given key string.
Query the inverse index for a reference field.
Set the target head handle for reference resolution.
Put a field value into a record-aware map, auto-resolving references when the field is CM_REFERENCE / CM_MULTI_REFERENCE and target_hd is set.
Get a field value from a record-aware map, auto-resolving references when the field is CM_REFERENCE.
Register an optional token decoder callback for HTOK token-packed fields.
Pack a JSON string representation of a memory envelope into HTOK v4 binary bytes.
Unpack an HTOK v4 binary buffer into a clean JSON string representation.
Detailed Description
Public header for the Corm library.
Declares the API for Corm โ associative containers with optional persistence, mirror maps and sorted iteration.
Macro Definition Documentation
#define CM_MISS ((uint32_t)-1)
Sentinel value for "not found" or error conditions. Returned by corm_reg(), corm_mreg() when type limit is reached, and used internally to indicate missing entries. Equal to UINT32_MAX.
Author
Generated automatically by Doxygen for corm from the source code.