Scroll to navigation

BSON_ITER_BINARY_EQUAL(3) libbson BSON_ITER_BINARY_EQUAL(3)

SYNOPSIS

bool
bson_iter_binary_equal (const bson_iter_t *iter_a, const bson_iter_t *iter_b);


PARAMETERS

  • iter_a: A bson_iter_t.
  • iter_b: A bson_iter_t.

DESCRIPTION

Compare two BSON_TYPE_BINARY fields for exact equality.

This is the preferred way to compare BSON Binary Vector subtype values for equality.

RETURNS

true if both iterators point to BSON_TYPE_BINARY fields with identical subtype and contents. false if there is any difference in subtype, length, or content, or if the fields are not binary type.

AUTHOR

MongoDB, Inc

COPYRIGHT

2009-present, MongoDB, Inc.

June 17, 2025 2.0.2