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

Function _get_code

bson/__init__.py:441–446  ·  view source on GitHub ↗

Decode a BSON code to bson.code.Code.

(
    data: Any, view: Any, position: int, obj_end: int, opts: CodecOptions[Any], element_name: str
)

Source from the content-addressed store, hash-verified

439
440
441def _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
449def _get_code_w_scope(

Callers

nothing calls this directly

Calls 2

CodeClass · 0.90
_get_stringFunction · 0.85

Tested by

no test coverage detected