hyle/ctx.h(3)libhyle

NAME

hyle/ctx.h - Allocation context for the hyle data engine.

SYNOPSIS

#include <stdint.h>

Data Structures

struct hyle_ctx_t

Allocation context for the hyle data engine.

Typedefs

typedef struct hyle_ctx_t hyle_ctx_t

Allocation context for the hyle data engine.

Functions

hyle_ctx_t * hyle_ctx_new (void)

Create and initialize a new allocation context.

void hyle_ctx_free (hyle_ctx_t *ctx)

Close a context's pools and free the context itself.

Detailed Description

Allocation context for the hyle data engine.

Tracks the string/array/map pools that back values and ids created within a dataset context.

Typedef Documentation

typedef struct hyle_ctx_t hyle_ctx_t

Allocation context for the hyle data engine. Holds the corm pool handles that back values and row ids, plus a scratch pool for intermediate view results.

Function Documentation

void hyle_ctx_free (hyle_ctx_t * ctx)

Close a context's pools and free the context itself.

Parameters

ctx Context to release, or NULL.

hyle_ctx_t * hyle_ctx_new (void )

Create and initialize a new allocation context. Opens the string, array, map and scratch corm pools backing the context. The caller owns the returned context, and must release it with hyle_ctx_free().

Returns

A new context, or NULL when out of memory.

Author

Generated automatically by Doxygen for libhyle from the source code.