bson_iter_key_len - Man Page

bson_iter_key_len()

Synopsis

uint32_t
bson_iter_key_len (const bson_iter_t *iter);

Parameters

Description

Fetches the length of the key for the current element observed by iter. This is a constant time computation, and therefore faster than calling strlen() on a key returned by bson_iter_key().

See Also

bson_iter_key() to retrieve current key.

Returns

An integer representing the key length.

Author

MongoDB, Inc

Info

Feb 25, 2020 1.16.2 libbson