Decode a BSON code to bson.code.Code.
(
data: Any, view: Any, position: int, obj_end: int, opts: CodecOptions[Any], element_name: str
)
| 439 | |
| 440 | |
| 441 | def _get_code( |
| 442 | data: Any, view: Any, position: int, obj_end: int, opts: CodecOptions[Any], element_name: str |
| 443 | ) -> Tuple[Code, int]: |
| 444 | """Decode a BSON code to bson.code.Code.""" |
| 445 | code, position = _get_string(data, view, position, obj_end, opts, element_name) |
| 446 | return Code(code), position |
| 447 | |
| 448 | |
| 449 | def _get_code_w_scope( |
nothing calls this directly
no test coverage detected