das2C
das core C utilities (v3)
Loading...
Searching...
No Matches
Data Structures | Functions
codex.h File Reference

CODec EXtensions. More...

#include <stdbool.h>
#include <stddef.h>
#include <das3/value.h>
#include <das3/array.h>
#include <das3/buffer.h>
Include dependency graph for codex.h:

Go to the source code of this file.

Data Structures

struct  DasCodex
 One decode/encode context, made by new_DasCodex and owned by the DasCodec that made it. More...
 

Functions

DAS_API bool das_codex_supported (const char *sMime)
 True if a codec for this mime is registered and loaded.
 
DAS_API const char * das_codex_path (const char *sMime)
 The absolute path registered for a mime, or NULL.
 

Detailed Description

CODec EXtensions.

Decode/encode embedded formats (png, gzip, jpeg, ...) that das2C's builtin codec (codec.h) hands through as opaque blobs. Distinct from codec.h: codec = builtin wire encodings; codex = optional handlers for foreign formats embedded in a stream.

Function Documentation

◆ das_codex_supported()

DAS_API bool das_codex_supported ( const char *  sMime)

True if a codec for this mime is registered and loaded.

v3.0: always false.

◆ das_codex_path()

DAS_API const char * das_codex_path ( const char *  sMime)

The absolute path registered for a mime, or NULL.

v3.0: always NULL.