GALANTHUS / ABI FUNCTION REFERENCE
gln_get_tan_medium_at
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API const gln_tan_medium_t* GLN_CALL gln_get_tan_medium_at(
const gln_tan_media_t* in_tan_media,
size_t in_index);
Purpose
Returns the TAN medium row at in_index from a gln_tan_media_t view.
Return
Returns the borrowed row or entry at in_index, or NULL when the handle is NULL or the index is out of range.
| Type | Nullability | Ownership |
|---|---|---|
const gln_tan_medium_t* | nullable | borrowed |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_tan_media | input | const gln_tan_media_t* | nullable | borrowed |
in_index | input | size_t | value | value |
Collection Semantics
Indexes are zero-based over the TAN medium rows materialized in this gln_tan_media_t view.
The returned row is borrowed from the typed TAN media view. Row pointers and strings read from the row stay valid only while the owning backend result envelope is alive.
Notes
Passing NULL for in_tan_media is allowed and returns NULL.
Indexes are zero-based. The accessor returns NULL when in_index >= gln_get_tan_media_count(in_tan_media).
The returned row is borrowed from the parent envelope through the TAN media view and must not be released directly.