MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _get_oid

Function _get_oid

bson/__init__.py:413–418  ·  view source on GitHub ↗

Decode a BSON ObjectId to bson.objectid.ObjectId.

(
    data: Any, _view: Any, position: int, dummy0: Any, dummy1: Any, dummy2: Any
)

Source from the content-addressed store, hash-verified

411
412
413def _get_oid(
414 data: Any, _view: Any, position: int, dummy0: Any, dummy1: Any, dummy2: Any
415) -> Tuple[ObjectId, int]:
416 """Decode a BSON ObjectId to bson.objectid.ObjectId."""
417 end = position + 12
418 return ObjectId(data[position:end]), end
419
420
421def _get_boolean(

Callers 1

_get_refFunction · 0.85

Calls 1

ObjectIdClass · 0.90

Tested by

no test coverage detected