MCPcopy Create free account
hub / github.com/documentdb/documentdb / BsonValueAsInt64

Function BsonValueAsInt64

pg_documentdb_core/src/query/bson_compare.c:553–559  ·  view source on GitHub ↗

* Converts Numeric bson value to 64 bit integer * This method can throw, see GetBsonDecimal128AsInt64 method summary for details. */

Source from the content-addressed store, hash-verified

551 * This method can throw, see GetBsonDecimal128AsInt64 method summary for details.
552 */
553int64_t
554BsonValueAsInt64(const bson_value_t *value)
555{
556 bool throwIfFailed = false;
557 return BsonValueAsInt64WithRoundingMode(value, ConversionRoundingMode_Floor,
558 throwIfFailed);
559}
560
561
562/*

Callers 15

BitwiseAndToBsonValueFunction · 0.85
BitwiseOrToBsonValueFunction · 0.85
BitwiseXorToBsonValueFunction · 0.85
AddInt32ToValueFunction · 0.85
AddInt64ToValueFunction · 0.85
BsonValueHashUint32Function · 0.85
HashBsonValueCompareFunction · 0.85
CompareNumbersFunction · 0.85
MergeBloatStatsBsonsFunction · 0.85
MergeWorkerResultsFunction · 0.85

Calls 1

Tested by

no test coverage detected