Skip to content

MTY_HashGetNextKeyInt

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Iterate through integer key/value pairs in a hash.

bool MTY_HashGetNextKeyInt(
    MTY_Hash * ctx,
    uint64_t * iter,
    int64_t *  key
);

Parameters

ctx (MTY_Hash *)

An MTY_Hash.

iter (uint64_t *)

Iterator that keeps track of the position in the hash. Set this to 0 before the fist call to this function.

key (int64_t *)

Reference to the next integer key in the hash.

Return value

bool

Returns true if there are more keys available, otherwise false.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Struct

Clone this wiki locally