Decode a BSON ObjectId to bson.objectid.ObjectId.
(
data: Any, _view: Any, position: int, dummy0: Any, dummy1: Any, dummy2: Any
)
| 411 | |
| 412 | |
| 413 | def _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 | |
| 421 | def _get_boolean( |