DOKK / manpages / debian 11 / libbson-doc / bson_iter_offset.3.en
BSON_ITER_OFFSET(3) libbson BSON_ITER_OFFSET(3)

bson_iter_offset - bson_iter_offset()

uint32_t
bson_iter_offset (const bson_iter_t *iter);


iter: A bson_iter_t.

Fetches the offset for the current element observed by iter.

bson_iter_init_from_data_at_offset() to use this offset to reconstruct a bson_iter_t in constant time.

An unsigned integer representing the offset in the BSON data of the current element.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6